com.bazaarvoice.emodb.common.dropwizard.lifecycle.LifeCycleRegistry Maven / Gradle / Ivy
package com.bazaarvoice.emodb.common.dropwizard.lifecycle;
import io.dropwizard.lifecycle.Managed;
import java.io.Closeable;
/**
* Registry that promises to call {@link Managed#start()} and {@link Managed#stop()} at the appropriate time for
* each registered instance of {@link Managed}.
*/
public interface LifeCycleRegistry {
T manage(T managed);
T manage(T closeable);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy