public class HandlerActivator<T> extends Object implements org.osgi.framework.BundleActivator
| Constructor and Description |
|---|
HandlerActivator(String[] protocols,
String pid,
ConnectionFactory<T> connectionFactory)
Creates a protocol handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
start(org.osgi.framework.BundleContext bundleContext)
Registers Handler as a wrap: protocol stream handler service and as a configuration managed service if
possible.
|
void |
stop(org.osgi.framework.BundleContext bundleContext)
Performs cleanup:
* Unregister handler; * Unregister managed service; * Release bundle context. |
public HandlerActivator(String[] protocols, String pid, ConnectionFactory<T> connectionFactory)
protocols - array of handled protocols. Cannot be null.pid - service pid. Cannot be null.connectionFactory - protocol specific connection factory. Cannot be nullorg.ops4j.lang.NullArgumentException - if any of the paramters is nullpublic void start(org.osgi.framework.BundleContext bundleContext)
start in interface org.osgi.framework.BundleActivatorbundleContext - the bundle context.BundleActivator.start(org.osgi.framework.BundleContext)public void stop(org.osgi.framework.BundleContext bundleContext)
stop in interface org.osgi.framework.BundleActivatorBundleActivator.stop(org.osgi.framework.BundleContext)Copyright © 2006–2021 OPS4J - Open Participation Software for Java. All rights reserved.