public class UnmodifiableActivationLifeCycle extends ActivationLifeCycle
UnsupportedOperationException.ActivationLifeCycle.Transition| Modifier | Constructor and Description |
|---|---|
protected |
UnmodifiableActivationLifeCycle(ActivationState inactiveState) |
| 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.
|
protected boolean |
internalAddStateTransition(ActivationState activationState,
EventType eventType,
ActivationState activationState2)
Internal method to add transitions to an unmodifiable life-cycle.
|
addStateTransition, containsFrom, containsTo, create, getInactiveState, getStateTransitions, nextActivationState, toStringprotected UnmodifiableActivationLifeCycle(ActivationState inactiveState)
inactiveState - public 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 transitionprotected boolean internalAddStateTransition(ActivationState activationState, EventType eventType, ActivationState activationState2)
activationState - eventType - activationState2 - public static UnmodifiableActivationLifeCycle copyOf(ActivationLifeCycle lifeCycle)
lifeCycle -