|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.felix.dependencymanager.DependencyActivatorBase
public abstract class DependencyActivatorBase
Base bundle activator class. Subclass this activator if you want to use dependency
management in your bundle. There are two methods you should implement:
init() and destroy(). Both methods take two arguments,
the bundle context and the dependency manager. The dependency manager can be used
to define all the dependencies.
| Constructor Summary | |
|---|---|
DependencyActivatorBase()
|
|
| Method Summary | |
|---|---|
ConfigurationDependency |
createConfigurationDependency()
Creates a new configuration dependency. |
Service |
createService()
Creates a new service. |
ServiceDependency |
createServiceDependency()
Creates a new service dependency. |
abstract void |
destroy(BundleContext context,
DependencyManager manager)
Destroy the dependency manager. |
abstract void |
init(BundleContext context,
DependencyManager manager)
Initialize the dependency manager. |
void |
start(BundleContext context)
Start method of the bundle activator. |
void |
stop(BundleContext context)
Stop method of the bundle activator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DependencyActivatorBase()
| Method Detail |
|---|
public abstract void init(BundleContext context,
DependencyManager manager)
throws Exception
start() method of the
bundle activator, causing the bundle not to start.
context - the bundle contextmanager - the dependency manager
Exception - if the initialization fails
public abstract void destroy(BundleContext context,
DependencyManager manager)
throws Exception
stop() method of the
bundle activator, causing the bundle not to stop.
context - the bundle contextmanager - the dependency manager
Exception - if the destruction fails
public void start(BundleContext context)
throws Exception
init().
start in interface BundleActivatorcontext - the bundle context
Exception
public void stop(BundleContext context)
throws Exception
destroy() method
and cleans up all left over dependencies.
stop in interface BundleActivatorcontext - the bundle context
Exceptionpublic Service createService()
public ServiceDependency createServiceDependency()
public ConfigurationDependency createConfigurationDependency()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||