public class Activator extends Object implements org.osgi.framework.BundleActivator
| Constructor and Description |
|---|
Activator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
same(Dictionary<String,?> cfg1,
Dictionary<String,?> cfg2) |
protected boolean |
same(Object v1,
Object v2) |
void |
start(org.osgi.framework.BundleContext context) |
void |
stop(org.osgi.framework.BundleContext context) |
protected void |
updateController(Dictionary<String,?> dictionary,
org.ops4j.pax.web.service.spi.ServerControllerFactory controllerFactory)
This method is the only place which is allowed to modify the config and factory fields.
|
public void start(org.osgi.framework.BundleContext context)
throws Exception
start in interface org.osgi.framework.BundleActivatorExceptionpublic void stop(org.osgi.framework.BundleContext context)
stop in interface org.osgi.framework.BundleActivatorprotected boolean same(Dictionary<String,?> cfg1, Dictionary<String,?> cfg2)
protected void updateController(Dictionary<String,?> dictionary, org.ops4j.pax.web.service.spi.ServerControllerFactory controllerFactory)
This method is the only place which is allowed to modify the config and factory fields.
Here a new ServiceFactory for HttpService and WebContainer
is registered for org.ops4j.pax.web PID.
dictionary - controllerFactory - Copyright © 2006–2022 OPS4J - Open Participation Software for Java. All rights reserved.