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

Bug 332177

Summary: Add support for new EventListenerHook to framework
Product: [Eclipse Project] Equinox Reporter: BJ Hargrave <hargrave>
Component: FrameworkAssignee: BJ Hargrave <hargrave>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tjwatson
Version: 3.7   
Target Milestone: 3.7 M5   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch to add support for EventListenerHooks
none
Updated patch for EventListenerHook support none

Description BJ Hargrave CLA 2010-12-08 18:27:12 EST
OSGi 4.3 is defining a new service hook. (See OSGi bug 1702.) This new EventListenerHook replaces the now deprecated EventHook.

The framework will continue to call the deprecated EventHook so existing EventHooks will continue to function. All registered EventHooks are called before the EventListenerHooks.
Comment 1 BJ Hargrave CLA 2010-12-08 18:36:46 EST
Created attachment 184826 [details]
Patch to add support for EventListenerHooks

The patch adds support for calling EventListenerHooks. Several collection wrappers were written to avoid work until the hook requires it. This also required changes to the collection views on CopyOnWriteIdentityMap to support removal on the collections.

Tom, can you review? You will probably need to update the patch with api filter changes for the OSGi api changes.
Comment 2 BJ Hargrave CLA 2010-12-10 11:25:16 EST
Created attachment 184963 [details]
Updated patch for EventListenerHook support

The updated patch includes correctly setting export version for o.o.f.hooks.service package to 1.1, .api_filters update for new OSGi class and changes to lazily allocate values map in ShrinkableValueCollectionMap.
Comment 3 BJ Hargrave CLA 2010-12-10 11:34:46 EST
Released patch to HEAD.