Package org.eclipse.net4j.util.lifecycle

# Klasse Lifecycle

java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle

Alle implementierten Schnittstellen:
  `INotifier`, `INotifier.INotifier2`, `IDeactivateable`, `ILifecycle`, `ILifecycle.DeferrableActivation`

Bekannte direkte Unterklassen:
  `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 a `lifecycle`.

Autor:
  Eike Stepper

## Verschachtelte Klassen - Übersicht

## Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.lifecycle.ILifecycle

`ILifecycle.DeferrableActivation`

## Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.event.INotifier

`INotifier.INotifier2`

## Feldübersicht

Felder
Modifizierer und Typ
Feld
Beschreibung
`static boolean`
`USE_LABEL`

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`Lifecycle()`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`final void`
`activate()`
`protected final void`
`checkActive()`
`protected final void`
`checkArg(boolean expr, String msg)`
`protected final void`
`checkArg(Object handle, String handleName)`
`protected final void`
`checkInactive()`
`protected final void`
`checkNull(Object handle, String msg)`
`protected final void`
`checkState(boolean expr, String msg)`
`protected final void`
`checkState(Object handle, String handleName)`
`final Exception`
`deactivate()`
`protected final void`
`deferredActivate(boolean successful)`
`protected void`
`doActivate()`
`protected void`
`doAfterActivate()`
`protected void`
`doBeforeActivate()`
`protected void`
`doBeforeDeactivate()`
`protected void`
`doDeactivate()`
`protected final void`
`dump()`
`final LifecycleState`
`getLifecycleState()`
`final boolean`
`isActive()`
`boolean`
`isDeferredActivation()`
`String`
`toString()`

### Von Klasse geerbte Methoden org.eclipse.net4j.util.event.Notifier

`addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

### Von Schnittstelle geerbte Methoden org.eclipse.net4j.util.event.INotifier

`addListener, getListeners, hasListeners, removeListener`

## Felddetails

### USE_LABEL

public static boolean USE_LABEL

## Konstruktordetails

### Lifecycle

public Lifecycle()

Seit:
  2.0

## Methodendetails

### activate

public final void activate() throws LifecycleException

Angegeben von:
  `activate` in Schnittstelle `ILifecycle`
Löst aus:
  `LifecycleException`

### deactivate

public final Exception deactivate()

Angegeben von:
  `deactivate` in Schnittstelle `IDeactivateable`
Angegeben von:
  `deactivate` in Schnittstelle `ILifecycle`

### getLifecycleState

public final LifecycleState getLifecycleState()

Angegeben von:
  `getLifecycleState` in Schnittstelle `ILifecycle`
Seit:
  3.0

### isActive

public final boolean isActive()

Angegeben von:
  `isActive` in Schnittstelle `ILifecycle`

### toString

public String toString()

Setzt außer Kraft:
  `toString` in Klasse `Object`

### dump

protected final void dump()

### checkActive

protected final void checkActive()

### checkInactive

protected final void checkInactive()

### checkNull

protected final void checkNull(Object handle, String msg) throws NullPointerException

Löst aus:
  `NullPointerException`

### checkArg

protected final void checkArg(boolean expr, String msg) throws IllegalArgumentException

Löst aus:
  `IllegalArgumentException`

### checkArg

protected final void checkArg(Object handle, String handleName) throws IllegalArgumentException

Löst aus:
  `IllegalArgumentException`

### checkState

protected final void checkState(boolean expr, String msg) throws IllegalStateException

Löst aus:
  `IllegalStateException`

### checkState

protected final void checkState(Object handle, String handleName) throws IllegalStateException

Löst aus:
  `IllegalStateException`

### deferredActivate

protected final void deferredActivate(boolean successful)

Seit:
  2.0

### isDeferredActivation

public boolean isDeferredActivation()

Angegeben von:
  `isDeferredActivation` in Schnittstelle `ILifecycle.DeferrableActivation`
Seit:
  3.2

### doBeforeActivate

protected void doBeforeActivate() throws Exception

Löst aus:
  `Exception`

### doActivate

protected void doActivate() throws Exception

Löst aus:
  `Exception`

### doAfterActivate

protected void doAfterActivate() throws Exception

Löst aus:
  `Exception`
Seit:
  3.0

### doBeforeDeactivate

protected void doBeforeDeactivate() throws Exception

Löst aus:
  `Exception`

### doDeactivate

protected void doDeactivate() throws Exception

Löst aus:
  `Exception`