Class JettyManaged

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
io.dropwizard.lifecycle.JettyManaged
All Implemented Interfaces:
Managed, org.eclipse.jetty.util.component.LifeCycle

public class JettyManaged extends org.eclipse.jetty.util.component.AbstractLifeCycle implements Managed
A wrapper for Managed instances which ties them to a Jetty LifeCycle.
  • Nested Class Summary

    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
    Creates a new JettyManaged wrapping managed.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     
     
     

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

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

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface io.dropwizard.lifecycle.Managed

    start, stop
  • Constructor Details

    • JettyManaged

      public JettyManaged(Managed managed)
      Creates a new JettyManaged wrapping managed.
      Parameters:
      managed - a Managed instance to be wrapped
  • Method Details

    • getManaged

      public Managed getManaged()
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class org.eclipse.jetty.util.component.AbstractLifeCycle