Not sure that this is quite what he
was looking for. The Eclipse LazyStart capabiliyt only starts bundles
when they are first "accessed" (ie.., when someone tries to load
a class from them). Here the bundles register services (by running
code when the bundle starts) that others then discover. That is,
the services need to be registered before the consumers can discover them.
The simple answer in the case of services
is to look into Declarative Services. Equinox includes an implementationof
As for starting all prereqs, no, we
do not have any explicit support for this. It would however be reasonably
easy to implement. See PackageAdmin for some methods that help you
traverse the dependency graph.
Benjamin Schmaus <benjamin.schmaus@xxxxxxxxx> Sent by: equinox-dev-bounces@xxxxxxxxxxx
02/13/2006 10:22 AM
Please respond to
Equinox development mailing list
Equinox development mailing
On 2/13/06, Abhishek Verma <abhishekv@xxxxxxxxxxxxxxxx>
How do I autostart the plugins on which my plugin depends.
Here is the
Plugin C requires plugin A and plugin B.
Plugin C uses services registered by both the plugins. But when I try to
use the services in plugin C, I get an error. This is because plugin A
and B have not been started. I tried doing it this way and it worked.