Class Activator
- java.lang.Object
-
- org.ops4j.pax.web.service.internal.Activator
-
- All Implemented Interfaces:
PaxWebManagedService.ConfigurationUpdater,org.osgi.framework.BundleActivator
public class Activator extends Object implements org.osgi.framework.BundleActivator, PaxWebManagedService.ConfigurationUpdater
Main entry point to Pax-Web.
This activator performs these actions:
- servlet event dispatcher
- registration of
WebElementEventListener-org.osgi.service.event.EventAdminbridge - registration of
WebElementEventListener-LogServicebridge - registration of
org.osgi.service.cm.ManagedServiceto monitororg.ops4j.pax.webPID changes
-
-
Constructor Summary
Constructors Constructor Description Activator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstart(org.osgi.framework.BundleContext context)voidstop(org.osgi.framework.BundleContext context)voidupdateConfiguration(Dictionary<String,?> configuration)Called directly or fromManagedService.updated(Dictionary).
-
-
-
Method Detail
-
start
public void start(org.osgi.framework.BundleContext context) throws Exception- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
stop
public void stop(org.osgi.framework.BundleContext context)
- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator
-
updateConfiguration
public void updateConfiguration(Dictionary<String,?> configuration)
Called directly or fromManagedService.updated(Dictionary). CurrentHttpServicehas to be re-registered because configuration has changed.- Specified by:
updateConfigurationin interfacePaxWebManagedService.ConfigurationUpdater- Parameters:
configuration-
-
-