Class LifecycleEnvironment


  • public class LifecycleEnvironment
    extends Object
    • Constructor Detail

      • LifecycleEnvironment

        public LifecycleEnvironment​(com.codahale.metrics.MetricRegistry metricRegistry)
    • Method Detail

      • getManagedObjects

        public List<org.eclipse.jetty.util.component.LifeCycle> getManagedObjects()
      • manage

        public void manage​(Managed managed)
        Adds the given Managed instance to the set of objects managed by the server's lifecycle. When the server starts, managed will be started. When the server stops, managed will be stopped.
        Parameters:
        managed - a managed object
      • manage

        public void manage​(org.eclipse.jetty.util.component.LifeCycle managed)
        Adds the given Jetty LifeCycle instances to the server's lifecycle.
        Parameters:
        managed - a Jetty-managed object
      • addEventListener

        public void addEventListener​(org.eclipse.jetty.util.component.LifeCycle.Listener listener)
      • attach

        public void attach​(org.eclipse.jetty.util.component.ContainerLifeCycle container)
      • getMetricRegistry

        public com.codahale.metrics.MetricRegistry getMetricRegistry()
        Since:
        2.0