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
FieldsModifier and TypeFieldDescriptionstatic final StringSet of config files to apply to a jetty Server instance if none are supplied by SYS_PROP_JETTY_ETC_FILESList of XML reference strings to default XML files.static final StringDefault location within bundle of a jetty home dir.static final Stringcontains a comma separated list of paths to the etc/jetty-*.xml files -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
JETTY_ETC_FILES
contains a comma separated list of paths to the etc/jetty-*.xml files- See Also:
-
DEFAULT_JETTY_XML_FILES
List of XML reference strings to default XML files. -
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 -
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:
startin interfaceorg.osgi.framework.BundleActivator- Parameters:
context- the bundle context- Throws:
Exception
-
stop
Stop the default jetty Server.- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception- See Also:
-
BundleActivator.stop(org.osgi.framework.BundleContext)
-