public abstract class DependencyActivatorBase extends Object implements org.osgi.framework.BundleActivator
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 and Description |
|---|
DependencyActivatorBase() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public abstract void init(org.osgi.framework.BundleContext context,
DependencyManager manager)
throws Exception
start() method of the
bundle activator, causing the bundle not to start.context - the bundle contextmanager - the dependency managerException - if the initialization failspublic abstract void destroy(org.osgi.framework.BundleContext context,
DependencyManager manager)
throws Exception
stop() method of the
bundle activator, causing the bundle not to stop.context - the bundle contextmanager - the dependency managerException - if the destruction failspublic void start(org.osgi.framework.BundleContext context)
throws Exception
init().start in interface org.osgi.framework.BundleActivatorcontext - the bundle contextExceptionpublic void stop(org.osgi.framework.BundleContext context)
throws Exception
destroy() method
and cleans up all left over dependencies.stop in interface org.osgi.framework.BundleActivatorcontext - the bundle contextExceptionpublic Service createService()
public ServiceDependency createServiceDependency()
public ConfigurationDependency createConfigurationDependency()
Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.