Class JettyBootstrapActivator

java.lang.Object
org.eclipse.jetty.osgi.JettyBootstrapActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class JettyBootstrapActivator extends Object implements org.osgi.framework.BundleActivator
JettyBootstrapActivator

Bootstrap jetty and publish a default Server instance as an OSGi service.

  • Field Details

    • JETTY_ETC_FILES

      public static final String JETTY_ETC_FILES
      contains a comma separated list of paths to the etc/jetty-*.xml files
      See Also:
    • DEFAULT_JETTY_ETC_FILES

      public static final String 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

      public static final String DEFAULT_JETTYHOME
      Default location within bundle of a jetty home dir.
      See Also:
  • Constructor Details

    • JettyBootstrapActivator

      public JettyBootstrapActivator()
  • Method Details

    • start

      public void start(org.osgi.framework.BundleContext context) throws Exception
      Setup a new jetty Server, register it as a service.
      Specified by:
      start in interface org.osgi.framework.BundleActivator
      Parameters:
      context - the bundle context
      Throws:
      Exception
    • stop

      public void stop(org.osgi.framework.BundleContext context) throws Exception
      Stop the activator.
      Specified by:
      stop in interface org.osgi.framework.BundleActivator
      Throws:
      Exception
      See Also:
      • BundleActivator.stop(org.osgi.framework.BundleContext)