Class 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
      JettyManaged​(Managed managed)
      Creates a new JettyManaged wrapping managed.
    • Constructor Detail

      • JettyManaged

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

      • 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