| How to inject a service, which has the IEventBroker injected in it, in an Eclipse part [message #1005772] |
Mon, 28 January 2013 11:45  |
Sytse Goedemoed Messages: 2 Registered: January 2013 |
Junior Member |
|
|
|
I want to inject a service into my Eclipse part. In itself this is not a problem, I can use a declarative OSGi service for this. The problem arises when I inject the IEventBroker in my service by means of an Eclipse addon. The addon has a hookListeners method which makes an instance of my service and sets it in the Eclipse context. The service that is injected in my Eclipse part is however another instance with a null IEventBroker. How can I make sure that the service instance which is set in the Eclipse context by the addon, is injected in my Eclipse part? Or is there a better way of achieving the above?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01671 seconds