S - the type of stateE - the type of eventpublic class StateMachineTransitionBuilder<S,E> extends AbstractConfiguredAnnotationBuilder<StateMachineTransitions<S,E>,StateMachineTransitionConfigurer<S,E>,StateMachineTransitionBuilder<S,E>> implements StateMachineTransitionConfigurer<S,E>
| Constructor and Description |
|---|
StateMachineTransitionBuilder() |
StateMachineTransitionBuilder(ObjectPostProcessor<java.lang.Object> objectPostProcessor) |
StateMachineTransitionBuilder(ObjectPostProcessor<java.lang.Object> objectPostProcessor,
boolean allowConfigurersOfSameType) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(S source,
java.util.List<StateMachineTransitions.ChoiceData<S,E>> choices) |
void |
add(S source,
S target,
S state,
E event,
java.lang.Long period,
java.util.Collection<Action<S,E>> actions,
Guard<S,E> guard,
TransitionKind kind,
SecurityRule securityRule) |
void |
addFork(S source,
java.util.List<S> targets) |
void |
addJoin(S target,
java.util.List<S> sources) |
protected StateMachineTransitions<S,E> |
performBuild()
Subclasses must implement this method to build the object that is being returned.
|
ChoiceTransitionConfigurer<S,E> |
withChoice()
Gets a configurer for transition from a choice pseudostate.
|
ExternalTransitionConfigurer<S,E> |
withExternal()
Gets a configurer for external transition.
|
ForkTransitionConfigurer<S,E> |
withFork()
Gets a configurer for transition from a fork pseudostate.
|
InternalTransitionConfigurer<S,E> |
withInternal()
Gets a configurer for internal transition.
|
JoinTransitionConfigurer<S,E> |
withJoin()
Gets a configurer for transition from a join pseudostate.
|
LocalTransitionConfigurer<S,E> |
withLocal()
Gets a configurer for local transition.
|
apply, apply, beforeConfigureMains, beforeConfigurePosts, beforeInit, doBuild, getConfigurer, getConfigurers, getOrApply, getOrBuild, getSharedObject, getSharedObjects, objectPostProcessor, postProcess, removeConfigurer, removeConfigurers, setSharedObjectbuild, getObjectpublic StateMachineTransitionBuilder()
public StateMachineTransitionBuilder(ObjectPostProcessor<java.lang.Object> objectPostProcessor, boolean allowConfigurersOfSameType)
public StateMachineTransitionBuilder(ObjectPostProcessor<java.lang.Object> objectPostProcessor)
protected StateMachineTransitions<S,E> performBuild() throws java.lang.Exception
AbstractConfiguredAnnotationBuilderperformBuild in class AbstractConfiguredAnnotationBuilder<StateMachineTransitions<S,E>,StateMachineTransitionConfigurer<S,E>,StateMachineTransitionBuilder<S,E>>java.lang.Exception - if error occurredpublic ExternalTransitionConfigurer<S,E> withExternal() throws java.lang.Exception
StateMachineTransitionConfigurerwithExternal in interface StateMachineTransitionConfigurer<S,E>ExternalTransitionConfigurer for chainingjava.lang.Exception - if configuration error happensStateMachineTransitionConfigurer.withLocal()public InternalTransitionConfigurer<S,E> withInternal() throws java.lang.Exception
StateMachineTransitionConfigurerwithInternal in interface StateMachineTransitionConfigurer<S,E>InternalTransitionConfigurer for chainingjava.lang.Exception - if configuration error happenspublic LocalTransitionConfigurer<S,E> withLocal() throws java.lang.Exception
StateMachineTransitionConfigurerwithLocal in interface StateMachineTransitionConfigurer<S,E>LocalTransitionConfigurer for chainingjava.lang.Exception - if configuration error happenspublic ChoiceTransitionConfigurer<S,E> withChoice() throws java.lang.Exception
StateMachineTransitionConfigurerwithChoice in interface StateMachineTransitionConfigurer<S,E>ChoiceTransitionConfigurer for chainingjava.lang.Exception - if configuration error happenspublic ForkTransitionConfigurer<S,E> withFork() throws java.lang.Exception
StateMachineTransitionConfigurerwithFork in interface StateMachineTransitionConfigurer<S,E>ForkTransitionConfigurer for chainingjava.lang.Exception - if configuration error happenspublic JoinTransitionConfigurer<S,E> withJoin() throws java.lang.Exception
StateMachineTransitionConfigurerwithJoin in interface StateMachineTransitionConfigurer<S,E>JoinTransitionConfigurer for chainingjava.lang.Exception - if configuration error happenspublic void add(S source, S target, S state, E event, java.lang.Long period, java.util.Collection<Action<S,E>> actions, Guard<S,E> guard, TransitionKind kind, SecurityRule securityRule)
public void add(S source, java.util.List<StateMachineTransitions.ChoiceData<S,E>> choices)