org.sonatype.sisu.goodies.lifecycle
Class LifecycleSupport

java.lang.Object
  extended by org.sonatype.sisu.goodies.common.ComponentSupport
      extended by org.sonatype.sisu.goodies.lifecycle.LifecycleSupport
All Implemented Interfaces:
Lifecycle, LifecycleAware
Direct Known Subclasses:
LifecycleManagerImpl

public class LifecycleSupport
extends ComponentSupport
implements Lifecycle

Support for Lifecycle implementations.

Since:
1.0

Field Summary
 
Fields inherited from class org.sonatype.sisu.goodies.common.ComponentSupport
log
 
Constructor Summary
LifecycleSupport()
           
 
Method Summary
protected  void doFailed(Throwable cause)
           
protected  void doReset()
           
protected  void doStart()
           
protected  void doStop()
           
protected  void ensureStarted()
           
protected  void ensureStopped()
           
 Lifecycle getLifecycle()
           
protected  boolean isResettable()
           
protected  boolean isStarted()
           
protected  boolean isStopped()
           
 void start()
           
 void 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
 

Constructor Detail

LifecycleSupport

public LifecycleSupport()
Method Detail

getLifecycle

public Lifecycle getLifecycle()
Specified by:
getLifecycle in interface LifecycleAware

doFailed

protected void doFailed(Throwable cause)

isResettable

protected boolean isResettable()

doReset

protected void doReset()
                throws Exception
Throws:
Exception

start

public final void start()
                 throws Exception
Specified by:
start in interface Lifecycle
Throws:
Exception

doStart

protected void doStart()
                throws Exception
Throws:
Exception

stop

public final void stop()
                throws Exception
Specified by:
stop in interface Lifecycle
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Throws:
Exception

isStarted

protected boolean isStarted()

ensureStarted

protected void ensureStarted()

isStopped

protected boolean isStopped()

ensureStopped

protected void ensureStopped()


Copyright © 2008-2012 Sonatype, Inc.. All Rights Reserved.