Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Starting bundles that register services
Starting bundles that register services [message #68250] Sat, 27 May 2006 12:32
Erkki Lindpere is currently offline Erkki LindpereFriend
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?
Previous Topic:Exploded OSGi Bundles
Next Topic:Hello World Service?
Goto Forum:
  


Current Time: Wed Sep 25 02:53:47 GMT 2024

Powered by FUDForum. Page generated in 0.03292 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top