|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.robokind.api.common.osgi.lifecycle.DynamicServiceLauncher<T>
T - type of the dynamic service to be launchedpublic class DynamicServiceLauncher<T>
Launches and manages a ServiceLifecycleProvider. Creates a ServiceDependencyTracker to drive the service lifecycle from the OSGi Service Registry. The the service lifecycle changes, the DynamicServiceLauncher registers/unregisters the managed service in the OSGi ServiceRegistry.
| Constructor Summary | |
|---|---|
DynamicServiceLauncher(org.osgi.framework.BundleContext context,
ServiceLifecycleProvider<T> lifecycle)
Creates a new DynamicServiceLauncher from the given lifecycle provider. |
|
DynamicServiceLauncher(org.osgi.framework.BundleContext context,
ServiceLifecycleProvider<T> lifecycle,
Properties registrationProps)
Creates a new DynamicServiceLauncher from the given lifecycle provider. |
|
DynamicServiceLauncher(org.osgi.framework.BundleContext context,
ServiceLifecycleProvider<T> lifecycle,
String registrationClassName,
Properties registrationProps)
Creates a new DynamicServiceLauncher from the given lifecycle provider. |
|
| Method Summary | |
|---|---|
protected void |
registerService()
Registers the dynamic service to the OSGi Service Registry. |
void |
start()
Starts the DynamicServiceLauncher. |
void |
stop()
Stops tracking dependency changes. |
void |
unregisterService()
Unregisters the dynamic service from the OSGi Service Registry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicServiceLauncher(org.osgi.framework.BundleContext context,
ServiceLifecycleProvider<T> lifecycle)
context - BundleContext for accessing the OSGi Service Registrylifecycle - lifecycle provider for the managed service
public DynamicServiceLauncher(org.osgi.framework.BundleContext context,
ServiceLifecycleProvider<T> lifecycle,
Properties registrationProps)
context - BundleContext for accessing the OSGi Service Registrylifecycle - lifecycle provider for the dynamic serviceregistrationProps - optional properties to be used when registering
the dynamic service to the OSGi Service Registry. These are combined
with any properties from the ServiceLifecycleProvider
public DynamicServiceLauncher(org.osgi.framework.BundleContext context,
ServiceLifecycleProvider<T> lifecycle,
String registrationClassName,
Properties registrationProps)
context - BundleContext for accessing the OSGi Service Registrylifecycle - lifecycle provider for the dynamic serviceregistrationProps - optional properties to be used when registering
the dynamic service to the OSGi Service Registry. These are combined
with any properties from the ServiceLifecycleProviderregistrationClassName - class name to be used when registering the
dynamic service to the OSGi Service Registry. By default, this value is
taken from the ServiceLifecycleProvider's getServiceClass().| Method Detail |
|---|
public void start()
public void stop()
public void unregisterService()
protected void registerService()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||