Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 370354

Summary: Support application store listeners
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.5   
Target Milestone: 2.2 M1   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 362924    
Attachments:
Description Flags
Draft none

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.