Re: freemarker plus javarebel problems...caching?

Attila Szegedi <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
On 2008.05.15., at 12:48, ekabanov wrote:

>
> Well, it's not the only product that allows HotSwap -- IBM J9 has some
> support and Weblogic 10.3 features something called FastSwap. By  
> making
> wrong assumptions you are just hurting your own users in the long run.

> And
> the fix is very easy, just reset the cache when you don't find some  
> property
> or method and retry once.

I know we have users that write templates that rely on negative lookup  
of properties. Making testing for absence of a property expensive (by  
forcing reflective reinspection of the class) is something I'd not be  
comfortable with... Making it easy to wire selective cache purging to  
an event publishing mechanism in your API would be a better idea.

Or we could make the reinspection on failed property lookup a  
configurable property on BeansWrapper - users can turn it on if they  
use hotswapping and keep it turned off otherwise.

Attila.

> Cheers,
> Jevgeni Kabanov


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
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.