Community
Participate
Working Groups
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.
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.
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.
Released patch to HEAD.