|
|||||||||
| 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(org.osgi.framework.BundleContext context,
DependencyManager manager)
Destroy the dependency manager. |
abstract void |
init(org.osgi.framework.BundleContext context,
DependencyManager manager)
Initialize the dependency manager. |
void |
start(org.osgi.framework.BundleContext context)
Start method of the bundle activator. |
void |
stop(org.osgi.framework.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(org.osgi.framework.BundleContext context,
DependencyManager manager)
throws java.lang.Exception
start() method of the
bundle activator, causing the bundle not to start.
context - the bundle contextmanager - the dependency manager
java.lang.Exception - if the initialization fails
public abstract void destroy(org.osgi.framework.BundleContext context,
DependencyManager manager)
throws java.lang.Exception
stop() method of the
bundle activator, causing the bundle not to stop.
context - the bundle contextmanager - the dependency manager
java.lang.Exception - if the destruction fails
public void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
init().
start in interface org.osgi.framework.BundleActivatorcontext - the bundle context
java.lang.Exception
public void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
destroy() method
and cleans up all left over dependencies.
stop in interface org.osgi.framework.BundleActivatorcontext - the bundle context
java.lang.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 | ||||||||