Automatic detaching of IDetachables

2009-12-01 Thread Martijn Dashorst
Not sure if it will fly, but couldn't we utilize the same tech as project lombok [1] uses to automatically generate detach code for IDetachables? Note that I have no idea if it will work, but considering they are able to generate try/finally blocks, we might be able to do something similar.

Re: Automatic detaching of IDetachables

2009-12-01 Thread Johan Compagner
So generate a detach() methods that looks up all the fields and do what on those? I guess if that is a detachable call it through and annotate other fields that should be set to null? so i we have this class @detachable MyModel { private IModel innerModel; private @detach Object myVar;

Re: Automatic detaching of IDetachables

2009-12-01 Thread Igor Vaynberg
we can easily do this via reflection and an icomponentdetachlistener, i was going to start looking into it after we sort the urls and push 1.5 out. -igor On Tue, Dec 1, 2009 at 2:41 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Not sure if it will fly, but couldn't we utilize the same

Re: Session Invalidation Options

2009-12-01 Thread Erik van Oosten
Thanks Michael. Erik. Michael Mosmann wrote: Hope this code will make something clear. mm:) -- Erik van Oosten http://day-to-day-stuff.blogspot.com/