
public class Lifecycle extends Notifier implements ILifecycle, ILifecycle.DeferrableActivation
lifecycle.ILifecycle.DeferrableActivation| Modifier and Type | Field and Description |
|---|---|
static boolean |
USE_LABEL |
| Constructor and Description |
|---|
Lifecycle() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
protected void |
checkActive() |
protected void |
checkArg(boolean expr,
String msg) |
protected void |
checkArg(Object handle,
String handleName) |
protected void |
checkInactive() |
protected void |
checkNull(Object handle,
String msg) |
protected void |
checkState(boolean expr,
String msg) |
protected void |
checkState(Object handle,
String handleName) |
Exception |
deactivate() |
protected void |
deferredActivate(boolean successful) |
protected void |
doActivate() |
protected void |
doAfterActivate() |
protected void |
doBeforeActivate() |
protected void |
doBeforeDeactivate() |
protected void |
doDeactivate() |
protected void |
dump() |
LifecycleState |
getLifecycleState() |
boolean |
isActive() |
boolean |
isDeferredActivation() |
String |
toString() |
addListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, getListeners, hasListeners, removeListenerpublic final void activate()
throws LifecycleException
activate in interface ILifecycleLifecycleExceptionpublic final Exception deactivate()
deactivate in interface ILifecyclepublic final LifecycleState getLifecycleState()
getLifecycleState in interface ILifecyclepublic final boolean isActive()
isActive in interface ILifecycleprotected final void dump()
protected final void checkActive()
protected final void checkInactive()
protected final void checkNull(Object handle, String msg) throws NullPointerException
NullPointerExceptionprotected final void checkArg(boolean expr,
String msg)
throws IllegalArgumentException
IllegalArgumentExceptionprotected final void checkArg(Object handle, String handleName) throws IllegalArgumentException
IllegalArgumentExceptionprotected final void checkState(boolean expr,
String msg)
throws IllegalStateException
IllegalStateExceptionprotected final void checkState(Object handle, String handleName) throws IllegalStateException
IllegalStateExceptionprotected final void deferredActivate(boolean successful)
public boolean isDeferredActivation()
isDeferredActivation in interface ILifecycle.DeferrableActivationCopyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.