Package io.dropwizard.lifecycle
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.StopExceptionNested 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 -
Method Summary
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop
-
Constructor Details
-
JettyManaged
Creates a new JettyManaged wrappingmanaged.- Parameters:
managed- aManagedinstance to be wrapped
-
-
Method Details
-
getManaged
-
doStart
- Overrides:
doStartin classorg.eclipse.jetty.util.component.AbstractLifeCycle- Throws:
Exception
-
doStop
- Overrides:
doStopin classorg.eclipse.jetty.util.component.AbstractLifeCycle- Throws:
Exception
-
toString
- Overrides:
toStringin classorg.eclipse.jetty.util.component.AbstractLifeCycle
-