public class UnmodifiableActivationLifeCycle extends ActivationLifeCycle
UnsupportedOperationException.| Modifier and Type | Method and Description |
|---|---|
boolean |
addStateTransition(ActivationState from,
EventType event,
ActivationState to)
Extends the life cycle with a new transition that is created
from the given state, labeled with the given event and leading
to the given state.
|
static UnmodifiableActivationLifeCycle |
copyOf(ActivationLifeCycle lifeCycle)
Creates an unmodifiable copy of the given life-cycle.
|
containsFrom, containsTo, create, getInactiveState, getStateTransitionTable, nextActivationState, toStringpublic boolean addStateTransition(ActivationState from, EventType event, ActivationState to)
ActivationLifeCycleaddStateTransition in class ActivationLifeCyclefrom - the source state of the transitionevent - the event causing the transitionto - the target state of the transitionpublic static UnmodifiableActivationLifeCycle copyOf(ActivationLifeCycle lifeCycle)
lifeCycle -