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,
java.lang.String msg) |
protected void |
checkArg(java.lang.Object handle,
java.lang.String handleName) |
protected void |
checkInactive() |
protected void |
checkNull(java.lang.Object handle,
java.lang.String msg) |
protected void |
checkState(boolean expr,
java.lang.String msg) |
protected void |
checkState(java.lang.Object handle,
java.lang.String handleName) |
java.lang.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() |
java.lang.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 java.lang.Exception deactivate()
deactivate
in interface IDeactivateable
deactivate
in interface ILifecycle
public final LifecycleState getLifecycleState()
getLifecycleState
in interface ILifecycle
public final boolean isActive()
isActive
in interface ILifecycle
public java.lang.String toString()
toString
in class java.lang.Object
protected final void dump()
protected final void checkActive()
protected final void checkInactive()
protected final void checkNull(java.lang.Object handle, java.lang.String msg) throws java.lang.NullPointerException
java.lang.NullPointerException
protected final void checkArg(boolean expr, java.lang.String msg) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
protected final void checkArg(java.lang.Object handle, java.lang.String handleName) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
protected final void checkState(boolean expr, java.lang.String msg) throws java.lang.IllegalStateException
java.lang.IllegalStateException
protected final void checkState(java.lang.Object handle, java.lang.String handleName) throws java.lang.IllegalStateException
java.lang.IllegalStateException
protected final void deferredActivate(boolean successful)
public boolean isDeferredActivation()
isDeferredActivation
in interface ILifecycle.DeferrableActivation
protected void doBeforeActivate() throws java.lang.Exception
java.lang.Exception
protected void doActivate() throws java.lang.Exception
java.lang.Exception
protected void doAfterActivate() throws java.lang.Exception
java.lang.Exception
protected void doBeforeDeactivate() throws java.lang.Exception
java.lang.Exception
protected void doDeactivate() throws java.lang.Exception
java.lang.Exception
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html