Start of Bundle with no Activator [message #115803] |
Wed, 06 August 2008 20:42 |
Timothy Marc Messages: 547 Registered: July 2009 |
Senior Member |
|
|
Hi all,
currently, I'm introduce myself to the OSGI spec and the Eclipse Equinox
implementation. I know that the usage of an Bundle-Activator is not
mandatory; it is commonly used for settings up initial things. Okay, so
far so good. But:
If a Bundle contains no Activator, when will the Bundle's state set to
STARTING and when to ACTIVE? In the OSGi spec, it is defined, that the
STARTINg state will be reached, when the Activator.start() was invoked
and is still working. After the returning, the Bundle will be set in the
active state. But if there is no Activator, that can be invoked for
starting, IMHO the Bundle.start() will skipp the STARTING-phase and will
set the state immediately to ACTIVE.
Is it so?
Thanks a lot
Timothy
|
|
|
Powered by
FUDForum. Page generated in 0.01954 seconds