Re: "pluggable" beans wrapper

Attila Szegedi <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
You can certainly subclass BeansWrapper and override  
getModelFactory(). The sole reason it is marked protected instead of  
private is so that subclasses can override it. As for JavaDoc, I guess  
I'll remove the word "internal" -- not sure why's that there...

Attila.
--
home: http://www.szegedi.org
twitter: http://twitter.com/szegedi
weblog: http://constc.blogspot.com

On 2008.12.15., at 18:08, Grégory Joseph wrote:

> Hi,
>
> Having a pluggable beans wrappers - where components could somehow
> "register" the wrappers on a per-class basis would be useful for me
> right now. I thought I could use an extended version of
> getModelFactory() which would use a Map<Class, ModelFactory>. Now I
> read in ModelFactory's javadoc that it's an "internal interface". What
> is the status on this ? How safe would it be for me and my project to
> use this in the longer run ?
>
> Cheers,
> -g

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.