Class ServiceContextProvider

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

public class ServiceContextProvider extends AbstractContextProvider implements ServiceProvider
ServiceContextProvider Jetty DeploymentManager Provider that is able to deploy ContextHandlers discovered via OSGi as services.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
    ContextTracker
    class 
    ServiceApp

    Nested classes/interfaces inherited from class org.eclipse.jetty.osgi.boot.AbstractContextProvider

    AbstractContextProvider.OSGiApp

    Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopException

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle

    org.eclipse.jetty.util.component.LifeCycle.Listener
  • Field Summary

    Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    FAILED, STARTED, STARTING, STOPPED, STOPPING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     
    boolean
    serviceAdded(org.osgi.framework.ServiceReference serviceRef, org.eclipse.jetty.server.handler.ContextHandler context)
     
    boolean
    serviceRemoved(org.osgi.framework.ServiceReference serviceRef, org.eclipse.jetty.server.handler.ContextHandler context)
     

    Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    addEventListener, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle

    addEventListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, start, stop
  • Constructor Details

  • Method Details

    • serviceAdded

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

      public boolean serviceRemoved(org.osgi.framework.ServiceReference serviceRef, org.eclipse.jetty.server.handler.ContextHandler context)
      Specified by:
      serviceRemoved in interface ServiceProvider
    • 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