org.sonatype.sisu.goodies.lifecycle.internal
Class LifecycleManagerImpl

java.lang.Object
  extended by org.sonatype.sisu.goodies.common.ComponentSupport
      extended by org.sonatype.sisu.goodies.lifecycle.LifecycleSupport
          extended by 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

Field Summary
 
Fields inherited from class org.sonatype.sisu.goodies.common.ComponentSupport
log
 
Constructor Summary
LifecycleManagerImpl()
           
 
Method Summary
 LifecycleManager add(LifecycleAware... components)
           
<T extends Lifecycle>
T
add(T component)
           
<T extends LifecycleAware>
T
add(T component)
           
 void clear()
           
protected  void doStart()
           
protected  void doStop()
           
 LifecycleManager remove(LifecycleAware... components)
           
<T extends Lifecycle>
T
remove(T component)
           
<T extends LifecycleAware>
T
remove(T component)
           
 
Methods inherited from class org.sonatype.sisu.goodies.lifecycle.LifecycleSupport
doFailed, doReset, ensureStarted, ensureStopped, getLifecycle, isResettable, isStarted, isStopped, start, stop
 
Methods inherited from class org.sonatype.sisu.goodies.common.ComponentSupport
createLogger
 
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
 
Methods inherited from interface org.sonatype.sisu.goodies.lifecycle.LifecycleAware
getLifecycle
 

Constructor Detail

LifecycleManagerImpl

public LifecycleManagerImpl()
Method Detail

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.