org.eclipse.net4j.util.lifecycle
Class Lifecycle

java.lang.Object
  extended by org.eclipse.net4j.util.event.Notifier
      extended by org.eclipse.net4j.util.lifecycle.Lifecycle
All Implemented Interfaces:
INotifier, INotifier.Introspection, ILifecycle, ILifecycle.Introspection
Direct Known Subclasses:
Container, Facility, FiniteStateMachine, ManagedContainer, Protocol, Randomizer, UserManager, Worker

public class Lifecycle
extends Notifier
implements ILifecycle.Introspection


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
ILifecycle.Introspection
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
INotifier.Introspection
 
Field Summary
static boolean USE_LABEL
           
 
Constructor Summary
protected Lifecycle()
           
 
Method Summary
 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()
           
protected  void deferredDeactivate()
           
protected  void doActivate()
           
protected  void doBeforeActivate()
           
protected  void doBeforeDeactivate()
           
protected  void doDeactivate()
           
protected  void dump()
           
 ILifecycleState getLifecycleState()
           
 boolean isActive()
           
protected  boolean isDeferredActivation()
           
protected  boolean isDeferredDeactivation()
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, fireEvent, getListeners, hasListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

USE_LABEL

public static boolean USE_LABEL
Constructor Detail

Lifecycle

protected Lifecycle()
Method Detail

activate

public final void activate()
                    throws LifecycleException
Specified by:
activate in interface ILifecycle
Throws:
LifecycleException

deactivate

public final java.lang.Exception deactivate()
Specified by:
deactivate in interface ILifecycle

getLifecycleState

public final ILifecycleState getLifecycleState()
Specified by:
getLifecycleState in interface ILifecycle.Introspection

isActive

public final boolean isActive()
Specified by:
isActive in interface ILifecycle.Introspection

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

dump

protected final void dump()

checkActive

protected final void checkActive()

checkInactive

protected final void checkInactive()

checkNull

protected final void checkNull(java.lang.Object handle,
                               java.lang.String msg)
                        throws java.lang.NullPointerException
Throws:
java.lang.NullPointerException

checkArg

protected final void checkArg(boolean expr,
                              java.lang.String msg)
                       throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

checkArg

protected final void checkArg(java.lang.Object handle,
                              java.lang.String handleName)
                       throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

checkState

protected final void checkState(boolean expr,
                                java.lang.String msg)
                         throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

checkState

protected final void checkState(java.lang.Object handle,
                                java.lang.String handleName)
                         throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

deferredActivate

protected final void deferredActivate()

deferredDeactivate

protected final void deferredDeactivate()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

isDeferredActivation

protected boolean isDeferredActivation()

isDeferredDeactivation

protected boolean isDeferredDeactivation()

doBeforeActivate

protected void doBeforeActivate()
                         throws java.lang.Exception
Throws:
java.lang.Exception

doActivate

protected void doActivate()
                   throws java.lang.Exception
Throws:
java.lang.Exception

doBeforeDeactivate

protected void doBeforeDeactivate()
                           throws java.lang.Exception
Throws:
java.lang.Exception

doDeactivate

protected void doDeactivate()
                     throws java.lang.Exception
Throws:
java.lang.Exception

Copyright (c) 2004 - 2008 Eike Stepper, Germany.
All Rights Reserved.