Package org.eclipse.net4j.util.lifecycle
Class Lifecycle
- java.lang.Object
- 
- org.eclipse.net4j.util.event.Notifier
- 
- org.eclipse.net4j.util.lifecycle.Lifecycle
 
 
- 
- All Implemented Interfaces:
- INotifier,- INotifier.INotifier2,- IDeactivateable,- ILifecycle,- ILifecycle.DeferrableActivation
 - Direct Known Subclasses:
- ExecutorWorkSerializer,- FiniteStateMachine,- LifecycleHook,- ManagedContainer,- Randomizer,- RWLockManager,- RWOLockManager,- SerializingExecutor,- ShareableLifecycle,- UserManager,- UserManagerAuthenticator,- Worker
 
 public class Lifecycle extends Notifier implements ILifecycle, ILifecycle.DeferrableActivation A default implementation of an entity with alifecycle.- Author:
- Eike Stepper
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycleILifecycle.DeferrableActivation
 - 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifierINotifier.INotifier2
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static booleanUSE_LABEL
 - 
Constructor SummaryConstructors Constructor Description Lifecycle()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()protected voidcheckActive()protected voidcheckArg(boolean expr, java.lang.String msg)protected voidcheckArg(java.lang.Object handle, java.lang.String handleName)protected voidcheckInactive()protected voidcheckNull(java.lang.Object handle, java.lang.String msg)protected voidcheckState(boolean expr, java.lang.String msg)protected voidcheckState(java.lang.Object handle, java.lang.String handleName)java.lang.Exceptiondeactivate()protected voiddeferredActivate(boolean successful)protected voiddoActivate()protected voiddoAfterActivate()protected voiddoBeforeActivate()protected voiddoBeforeDeactivate()protected voiddoDeactivate()protected voiddump()LifecycleStategetLifecycleState()booleanisActive()booleanisDeferredActivation()java.lang.StringtoString()- 
Methods inherited from class org.eclipse.net4j.util.event.NotifieraddListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.eclipse.net4j.util.event.INotifieraddListener, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
activatepublic final void activate() throws LifecycleException- Specified by:
- activatein interface- ILifecycle
- Throws:
- LifecycleException
 
 - 
deactivatepublic final java.lang.Exception deactivate() - Specified by:
- deactivatein interface- IDeactivateable
- Specified by:
- deactivatein interface- ILifecycle
 
 - 
getLifecycleStatepublic final LifecycleState getLifecycleState() - Specified by:
- getLifecycleStatein interface- ILifecycle
- Since:
- 3.0
 
 - 
isActivepublic final boolean isActive() - Specified by:
- isActivein interface- ILifecycle
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
dumpprotected final void dump() 
 - 
checkActiveprotected final void checkActive() 
 - 
checkInactiveprotected final void checkInactive() 
 - 
checkNullprotected final void checkNull(java.lang.Object handle, java.lang.String msg) throws java.lang.NullPointerException- Throws:
- java.lang.NullPointerException
 
 - 
checkArgprotected final void checkArg(boolean expr, java.lang.String msg) throws java.lang.IllegalArgumentException- Throws:
- java.lang.IllegalArgumentException
 
 - 
checkArgprotected final void checkArg(java.lang.Object handle, java.lang.String handleName) throws java.lang.IllegalArgumentException- Throws:
- java.lang.IllegalArgumentException
 
 - 
checkStateprotected final void checkState(boolean expr, java.lang.String msg) throws java.lang.IllegalStateException- Throws:
- java.lang.IllegalStateException
 
 - 
checkStateprotected final void checkState(java.lang.Object handle, java.lang.String handleName) throws java.lang.IllegalStateException- Throws:
- java.lang.IllegalStateException
 
 - 
deferredActivateprotected final void deferredActivate(boolean successful) - Since:
- 2.0
 
 - 
isDeferredActivationpublic boolean isDeferredActivation() - Specified by:
- isDeferredActivationin interface- ILifecycle.DeferrableActivation
- Since:
- 3.2
 
 - 
doBeforeActivateprotected void doBeforeActivate() throws java.lang.Exception- Throws:
- java.lang.Exception
 
 - 
doActivateprotected void doActivate() throws java.lang.Exception- Throws:
- java.lang.Exception
 
 - 
doAfterActivateprotected void doAfterActivate() throws java.lang.Exception- Throws:
- java.lang.Exception
- Since:
- 3.0
 
 - 
doBeforeDeactivateprotected void doBeforeDeactivate() throws java.lang.Exception- Throws:
- java.lang.Exception
 
 - 
doDeactivateprotected void doDeactivate() throws java.lang.Exception- Throws:
- java.lang.Exception
 
 
- 
 
-