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, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, getListeners, hasListeners, removeListener
public final void activate() throws LifecycleException
activate
in interface ILifecycle
LifecycleException
public final Exception deactivate()
deactivate
in interface ILifecycle
public final LifecycleState getLifecycleState()
getLifecycleState
in interface ILifecycle
public final boolean isActive()
isActive
in interface ILifecycle
protected final void dump()
protected final void checkActive()
protected final void checkInactive()
protected final void checkNull(Object handle, String msg) throws NullPointerException
NullPointerException
protected final void checkArg(boolean expr, String msg) throws IllegalArgumentException
IllegalArgumentException
protected final void checkArg(Object handle, String handleName) throws IllegalArgumentException
IllegalArgumentException
protected final void checkState(boolean expr, String msg) throws IllegalStateException
IllegalStateException
protected final void checkState(Object handle, String handleName) throws IllegalStateException
IllegalStateException
protected final void deferredActivate(boolean successful)
public boolean isDeferredActivation()
isDeferredActivation
in interface ILifecycle.DeferrableActivation
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.