Class ServiceWebAppProvider

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.osgi.boot.AbstractWebAppProvider
org.eclipse.jetty.osgi.boot.ServiceWebAppProvider
All Implemented Interfaces:
org.eclipse.jetty.deploy.AppProvider, ServiceProvider, org.eclipse.jetty.util.component.LifeCycle

public class ServiceWebAppProvider extends AbstractWebAppProvider implements ServiceProvider
ServiceWebAppProvider

Jetty Provider that knows how to deploy a WebApp that has been registered as an OSGi service.

  • Constructor Details

  • Method Details

    • serviceAdded

      public boolean serviceAdded(org.osgi.framework.ServiceReference serviceRef, org.eclipse.jetty.server.handler.ContextHandler context)
      A webapp that was deployed as an osgi service has been added, and we want to deploy it.
      Specified by:
      serviceAdded in interface ServiceProvider
      Parameters:
      context - the webapp
    • serviceRemoved

      public boolean serviceRemoved(org.osgi.framework.ServiceReference serviceRef, org.eclipse.jetty.server.handler.ContextHandler context)
      Specified by:
      serviceRemoved in interface ServiceProvider
      Parameters:
      context - the webapp
    • doStart

      protected void doStart() throws Exception
      Overrides:
      doStart in class org.eclipse.jetty.util.component.AbstractLifeCycle
      Throws:
      Exception
    • doStop

      protected void doStop() throws Exception
      Overrides:
      doStop in class org.eclipse.jetty.util.component.AbstractLifeCycle
      Throws:
      Exception