Package org.eclipse.jetty.osgi
Class JettyBootstrapActivator
java.lang.Object
org.eclipse.jetty.osgi.JettyBootstrapActivator
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
JettyBootstrapActivator
Bootstrap jetty and publish a default Server instance as an OSGi service.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Set of config files to apply to a jetty Server instance if none are supplied by SYS_PROP_JETTY_ETC_FILESstatic final String
Default location within bundle of a jetty home dir.static final String
contains a comma separated list of paths to the etc/jetty-*.xml files -
Constructor Summary
-
Method Summary
-
Field Details
-
JETTY_ETC_FILES
contains a comma separated list of paths to the etc/jetty-*.xml files- See Also:
-
DEFAULT_JETTY_ETC_FILES
Set of config files to apply to a jetty Server instance if none are supplied by SYS_PROP_JETTY_ETC_FILES- See Also:
-
DEFAULT_JETTYHOME
Default location within bundle of a jetty home dir.- See Also:
-
-
Constructor Details
-
JettyBootstrapActivator
public JettyBootstrapActivator()
-
-
Method Details
-
start
Setup a new jetty Server, register it as a service.- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
- Parameters:
context
- the bundle context- Throws:
Exception
-
stop
Stop the activator.- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Throws:
Exception
- See Also:
-
BundleActivator.stop(org.osgi.framework.BundleContext)
-