Package ch.qos.logback.core
Class LifeCycleManager
- java.lang.Object
-
- ch.qos.logback.core.LifeCycleManager
-
public class LifeCycleManager extends java.lang.Object
An object that manages a collection of components that implement theLifeCycle
interface. Each component that is added to the manager will be stopped and removed from the manager when the manager is reset.
-
-
Constructor Summary
Constructors Constructor Description LifeCycleManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
register(LifeCycle component)
Registers a component with this manager.void
reset()
Resets this manager.
-
-
-
Method Detail
-
register
public void register(LifeCycle component)
Registers a component with this manager.- Parameters:
component
- the component whose life cycle is to be managed
-
reset
public void reset()
Resets this manager.All registered components are stopped and removed from the manager.
-
-