org.sonatype.sisu.goodies.lifecycle.internal
Class LifecycleManagerImpl
java.lang.Object
org.sonatype.sisu.goodies.common.ComponentSupport
org.sonatype.sisu.goodies.lifecycle.LifecycleSupport
org.sonatype.sisu.goodies.lifecycle.internal.LifecycleManagerImpl
- All Implemented Interfaces:
- Lifecycle, LifecycleAware, LifecycleContainer, LifecycleManager
public class LifecycleManagerImpl
- extends LifecycleSupport
- implements LifecycleManager
Default LifecycleManager
implementation.
- Since:
- 1.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.sonatype.sisu.goodies.lifecycle.Lifecycle |
start, stop |
LifecycleManagerImpl
public LifecycleManagerImpl()
add
public <T extends Lifecycle> T add(T component)
add
public <T extends LifecycleAware> T add(T component)
- Specified by:
add
in interface LifecycleContainer
add
public LifecycleManager add(LifecycleAware... components)
- Specified by:
add
in interface LifecycleContainer
remove
public <T extends Lifecycle> T remove(T component)
remove
public <T extends LifecycleAware> T remove(T component)
- Specified by:
remove
in interface LifecycleContainer
remove
public LifecycleManager remove(LifecycleAware... components)
- Specified by:
remove
in interface LifecycleContainer
clear
public void clear()
- Specified by:
clear
in interface LifecycleContainer
doStart
protected void doStart()
throws Exception
- Overrides:
doStart
in class LifecycleSupport
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Overrides:
doStop
in class LifecycleSupport
- Throws:
Exception
Copyright © 2008-2012 Sonatype, Inc.. All Rights Reserved.