Package org.eclipse.jetty.osgi.boot
Class JettyBootstrapActivator
- java.lang.Object
-
- org.eclipse.jetty.osgi.boot.JettyBootstrapActivator
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public class JettyBootstrapActivator extends java.lang.Object implements org.osgi.framework.BundleActivatorJettyBootstrapActivatorBootstrap jetty and publish a default Server instance as an OSGi service.
Listen for other Server instances to be published as services and support them as deployment targets.
Listen for Bundles to be activated, and deploy those that represent webapps/ContextHandlers to one of the known Server instances.
-
-
Constructor Summary
Constructors Constructor Description JettyBootstrapActivator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JettyBootstrapActivatorgetInstance()voidstart(org.osgi.framework.BundleContext context)Setup a new jetty Server, registers it as a service.voidstop(org.osgi.framework.BundleContext context)Stop the activator.
-
-
-
Method Detail
-
getInstance
public static JettyBootstrapActivator getInstance()
-
start
public void start(org.osgi.framework.BundleContext context) throws java.lang.ExceptionSetup a new jetty Server, registers it as a service. Setup the Service tracker for the jetty ContextHandlers that are in charge of deploying the webapps. Setup the BundleListener that supports the extender pattern for the jetty ContextHandler.- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Parameters:
context- the bundle context- Throws:
java.lang.Exception
-
stop
public void stop(org.osgi.framework.BundleContext context) throws java.lang.ExceptionStop the activator.- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Throws:
java.lang.Exception- See Also:
BundleActivator.stop(org.osgi.framework.BundleContext)
-
-