org.sonatype.sisu.goodies.lifecycle
Class LifecycleSupport
java.lang.Object
org.sonatype.sisu.goodies.common.ComponentSupport
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LifecycleSupport
public LifecycleSupport()
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.