Starting bundles that register services [message #68250] |
Sat, 27 May 2006 12:32 |
Erkki Lindpere Messages: 90 Registered: July 2009 |
Member |
|
|
Hi!
I have developed a bundles that defines a generic service interface:
ee.lap.bbapi.core - IBBServiceProvider
and two bundles that implement this service and register them at startup:
ee.lap.bbapi.phpbb - PHPBBServiceProvider implements IBBServiceProvider
ee.lap.bbapi.vbulletin - VBServiceProvider implements IBBServiceProvider
I want the clients of the service to know nothing about the
implementation bundles, except that they can be obtained by obtaining a
IBBServiceProvider service with (type=phpbb) or (type=vbulletin)
This was fine when I was using these bundles only in a custom OSGi
application and could set the start levels -- I simply started the
implementation bundles before the clients.
But now I want to use them in Eclipse and there doesn't seem to be an
easy way to say that these bundles should be started before the client
bundle requires these services...
It should be so that if the bundles are installed from an update site
and Eclipse restarted, the services become registered immediately...
Maybe I should use the extension registry instead?
|
|
|
Powered by
FUDForum. Page generated in 0.02620 seconds