OSGi Service Hooks explained
If you have a chance to go through the 4.2 version of the OSGi specification (pdf), you won’t fail to notice that we’ll see some very interesting news in OSGi soon. We’ve already (briefly) talked about Distributed OSGi, now Peter Kriens (OSGi Technical Director) introduces the OSGi service hooks specification in his latest post.
What’s this specification about? From the OSGi 4.2 early draft:
[...] The service layer operations provide no means for a bundle (external to the framework) to observe or manipulate the operations as they occur. Certain specialized bundles need to be able to alter output results of service layer find and event delivery operations to affect their purpose. Such purposes may include things like distributed service model, etc. [..]
Requirements
The solution must work with the current service layer model and allow certain bundles to observe the find and listen operations and to potentially reduce the result to affect their desired goals. The solution must be secured when java permissions are in effect.
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.
