Skip to main content



      Home
Home » Eclipse Projects » Equinox » Starting bundles that register services
Starting bundles that register services [message #68250] Sat, 27 May 2006 08:32
Eclipse UserFriend
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: Thu May 08 19:53:07 EDT 2025

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

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

Back to the top