public class BundleActivatorAdapter extends Object implements BundleActivator
BundleActivator.State
Constructor and Description |
---|
BundleActivatorAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
initialize()
Initializes the bundle.
|
void |
link()
Prepares the bundle.
|
void |
start()
Starts the bundle.
|
void |
stop()
Stops the bundle.
|
public void initialize()
BundleActivator
Initializes and registers bundle services in the BundleRegistry
instance.
initialize
in interface BundleActivator
ServiceRegistry.register(Class, Object)
public void link()
BundleActivator
Links bundle services to other services.
link
in interface BundleActivator
ServiceProvider.getService(Class)
public void start()
BundleActivator
At this step, all the bundles are prepared and ready. The services could be started.
start
in interface BundleActivator
public void stop()
BundleActivator
Unlinks it from the others services and clean possible resources and threads.
stop
in interface BundleActivator