public class JettyBootstrapActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator
Bootstrap 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 and Description |
---|
JettyBootstrapActivator() |
Modifier and Type | Method and Description |
---|---|
static JettyBootstrapActivator |
getInstance() |
void |
start(org.osgi.framework.BundleContext context)
Setup a new jetty Server, registers it as a service.
|
void |
stop(org.osgi.framework.BundleContext context)
Stop the activator.
|
public static JettyBootstrapActivator getInstance()
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
context
- the bundle contextjava.lang.Exception
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
java.lang.Exception
BundleActivator.stop(org.osgi.framework.BundleContext)
Copyright © 1995–2023 Webtide. All rights reserved.