Community
Participate
Working Groups
There is currently no way to hook into the termination of an application. When objects that require explicit disposal are kept in in the application scope, there is a need for such a hook. For an example, see bug 362924 comment 16. I propose to introduce an interface ApplicationStoreListener following the same pattern as SessionStoreListener. It would define a single method beforeDestroy() that is called just before destruction of the ApplicationStore. The ApplicationStore would receive an add and remove method for ApplicationStoreListeners.
Created attachment 233885 [details] Draft
Added ApplicationContext#add/removeApplicationContextListener() with commit 63a42a67da3b6e67d0cf511a24a0f04981c63c40.