package io.dropwizard.lifecycle;
import org.eclipse.jetty.util.component.AbstractLifeCycle;
public class JettyManaged extends AbstractLifeCycle implements Managed {
private final Managed managed;
public JettyManaged(Managed managed) {
this.managed = managed;
}
public Managed getManaged() {
return managed;
}
@Override
protected void doStart() throws Exception {
managed.start();
}
@Override
protected void doStop() throws Exception {
managed.stop();
}
@Override
public String toString() {
return managed.toString();
}
}