Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsListener for bundle consuming services
https://www.eclipse.org/forums/index.php/mv/msg/436506/981537/#msg_981537
Anyone could give me some hint on the matter ? I've been looking for listener.
The only thing I managed to use, is a declaration of an EventHandler service. The problem is that EventHandler only listen for registering services, not the consumption of a service.
The idea behind that is to start a bundle that will log registering services (already done) and services been consumed (aka reference bind/unbind in gemini blueprint).
Thanks.
]]>Mastah Naleh2012-11-12T13:52:21-00:00Re: Listener for bundle consuming services
https://www.eclipse.org/forums/index.php/mv/msg/436506/982911/#msg_982911
could try using the OSGi service registry hooks. But whether you'd want to is another matter...]]>Glyn Normington2012-11-13T14:22:08-00:00Re: Listener for bundle consuming services
https://www.eclipse.org/forums/index.php/mv/msg/436506/986057/#msg_986057
I tried with BundleContext.addServiceListener(), but as EventHandlers, only the registration fire an event. It seem that there is no native event on consumption of services, but only on registration of services.
So, I assume that there is no way to listen for services been consumed by other bundle, expect be directly putting the ReferenceListener on a blueprint (gemini) service consumption configuration.
Off topic: Gemini Blueprint home page seem to be linking to wrong urls (lots of 404)]]>Mastah Naleh2012-11-17T22:34:40-00:00Re: Listener for bundle consuming services
https://www.eclipse.org/forums/index.php/mv/msg/436506/986175/#msg_986175
(Also the 404's seem to have gone away.)]]>Glyn Normington2012-11-19T10:09:03-00:00