Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 244625 - Implement new service registry hooks (RFC 126)
Summary: Implement new service registry hooks (RFC 126)
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.5 M3   Edit
Assignee: BJ Hargrave CLA
QA Contact:
URL: http://www.osgi.org/Download/File?url...
Whiteboard:
Keywords:
Depends on:
Blocks: 247354
  Show dependency tree
 
Reported: 2008-08-19 17:22 EDT by Thomas Watson CLA
Modified: 2008-10-20 12:36 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Watson CLA 2008-08-19 17:22:36 EDT
The package org.osgi.framework.hooks.service defines the API for service registry hooks.
Comment 1 Thomas Watson CLA 2008-08-19 17:26:56 EDT
Assigning to BJ.  BJ, I gave it a tentative target of 3.5 M3.
Comment 2 Thomas Watson CLA 2008-08-21 17:40:55 EDT
See http://www.osgi.org/download/osgi-4.2-early-draft.pdf for early draft which includes RFC 126.
Comment 3 BJ Hargrave CLA 2008-10-01 15:51:32 EDT
I just committed support for RFC 126 section 5.2.2: Find Hooks.

Support for RFC 126 section 5.1.1 has previously been committed.
Comment 4 BJ Hargrave CLA 2008-10-15 20:39:15 EDT
I just commited support for PublishHooks. This involved moving all support for ServiceEvents into the serviceregistry package. 

I changed the PublishHook API definition to state the collection is of BundleContexts not Bundles. This change will be reflected in the RFC 126 design.

This required new API for eventmanager package (isEmpty method and a copy constructor in EventListeners). I put @since 3.5 tags on the new methods, but I am not sure if  that is sufficient for new API?

All that remains now is ListenerHook support. This interface may also change as I get implementation experience...
Comment 5 BJ Hargrave CLA 2008-10-20 12:36:58 EDT
I just committed the final code for the RFC 126 impl. This code added the ListenerHook support.
Note: the ListenerHook interface has changed as a result of the implementation experience.