Class ServiceWebAppProvider

All Implemented Interfaces:
AppProvider, ServiceProvider, 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, 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, ContextHandler context)
      Specified by:
      serviceRemoved in interface ServiceProvider
      Parameters:
      context - the webapp
    • doStart

      protected void doStart() throws Exception
      Description copied from class: AbstractLifeCycle
      Method to override to start the lifecycle
      Overrides:
      doStart in class AbstractLifeCycle
      Throws:
      AbstractLifeCycle.StopException - If thrown, the lifecycle will immediately be stopped.
      Exception - If there was a problem starting. Will cause a transition to FAILED state
    • doStop

      protected void doStop() throws Exception
      Description copied from class: AbstractLifeCycle
      Method to override to stop the lifecycle
      Overrides:
      doStop in class AbstractLifeCycle
      Throws:
      Exception - If there was a problem stopping. Will cause a transition to FAILED state