Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370354 - Support application store listeners
Summary: Support application store listeners
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.5   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: 2.2 M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 362924
  Show dependency tree
 
Reported: 2012-02-01 12:08 EST by Ralf Sternberg CLA
Modified: 2013-07-30 07:53 EDT (History)
0 users

See Also:


Attachments
Draft (13.40 KB, patch)
2013-07-29 09:21 EDT, Ivan Furnadjiev CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Sternberg CLA 2012-02-01 12:08:08 EST
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.
Comment 1 Ivan Furnadjiev CLA 2013-07-29 09:21:43 EDT
Created attachment 233885 [details]
Draft
Comment 2 Ivan Furnadjiev CLA 2013-07-30 07:53:49 EDT
Added ApplicationContext#add/removeApplicationContextListener() with commit 63a42a67da3b6e67d0cf511a24a0f04981c63c40.