Application#destroy()

2007-06-20 Thread Al Maw
From the Application#destroy() javadoc: /** * Called when wicket servlet is destroyed. * Overrides do not have to call super. */ protected void destroy() { callDestroyers(); } That's not ideal - surely we want to be certain the destroyers are called? I think we should make this method

Re: Application#destroy()

2007-06-20 Thread Sean Sullivan
+1 On 6/20/07, Al Maw [EMAIL PROTECTED] wrote: From the Application#destroy() javadoc: /** * Called when wicket servlet is destroyed. * Overrides do not have to call super. */ protected void destroy() { callDestroyers(); } That's not ideal - surely we want to be certain the destroyers

Re: Application#destroy()

2007-06-20 Thread Maurice Marrink
Actually there is also a protected internalDestroy (still not final though) which calls destroy so why not put callDestroyers there ? Maurice On 6/20/07, Sean Sullivan [EMAIL PROTECTED] wrote: +1 On 6/20/07, Al Maw [EMAIL PROTECTED] wrote: From the Application#destroy() javadoc

Re: Application#destroy()

2007-06-20 Thread Igor Vaynberg
not put callDestroyers there ? Maurice On 6/20/07, Sean Sullivan [EMAIL PROTECTED] wrote: +1 On 6/20/07, Al Maw [EMAIL PROTECTED] wrote: From the Application#destroy() javadoc: /** * Called when wicket servlet is destroyed. * Overrides do not have to call super. */ protected void

Re: Application#destroy()

2007-06-20 Thread Maurice Marrink
there is also a protected internalDestroy (still not final though) which calls destroy so why not put callDestroyers there ? Maurice On 6/20/07, Sean Sullivan [EMAIL PROTECTED] wrote: +1 On 6/20/07, Al Maw [EMAIL PROTECTED] wrote: From the Application#destroy() javadoc

Re: Application#destroy()

2007-06-20 Thread Eelco Hillenius
On 6/20/07, Maurice Marrink [EMAIL PROTECTED] wrote: Whatever makes you happy :) I see Johan as has already made the change of putting callDestroyers in internalDestroy. However if you are going to rename that method (not sure if Martijn is going to like that this late in the game). Please let

Re: Application#destroy()

2007-06-20 Thread Maurice Marrink
as in ? protected void internalDestroy() { ... destroy(); ... } public final void destroy() { ondestroy(); } public void ondestroy() { //do some cleanup here } bah, i'd rather have the rename. I have absolutly no problem with a rename as long as it is announced on the mailing list. But i don't

Re: Application#destroy()

2007-06-20 Thread Eelco Hillenius
bah, i'd rather have the rename. I have absolutly no problem with a rename as long as it is announced on the mailing list. That's fine. But I have :). And I have been bitten by it enough to know that without such a deprecation realease, people *will* forget/ not notice. Eelco

Re: Application#destroy()

2007-06-20 Thread Igor Vaynberg
actually protected void internaldestroy() { ondestroy(); } @deprecated - use ondestroy instead final void destroy() {} void ondestroy() {} -igor On 6/20/07, Maurice Marrink [EMAIL PROTECTED] wrote: as in ? protected void internalDestroy() { ... destroy(); ... } public final void destroy()

Re: Application#destroy()

2007-06-20 Thread Maurice Marrink
Ok, i see i misunderstood, this i can live with. fwiw :) Maurice On 6/20/07, Igor Vaynberg [EMAIL PROTECTED] wrote: actually protected void internaldestroy() { ondestroy(); } @deprecated - use ondestroy instead final void destroy() {} void ondestroy() {} -igor On 6/20/07, Maurice Marrink