S - the type of stateE - the type of eventpublic class DefaultInternalTransitionConfigurer<S,E> extends AnnotationConfigurerAdapter<StateMachineTransitions<S,E>,StateMachineTransitionConfigurer<S,E>,StateMachineTransitionBuilder<S,E>> implements InternalTransitionConfigurer<S,E>
InternalTransitionConfigurer.| Constructor and Description |
|---|
DefaultInternalTransitionConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
InternalTransitionConfigurer<S,E> |
action(Action<S,E> action)
Specify
Action for this Transition. |
void |
configure(StateMachineTransitionBuilder<S,E> builder)
Configure the
AnnotationBuilder by setting the necessary properties
on the AnnotationBuilder. |
InternalTransitionConfigurer<S,E> |
event(E event)
Specify event
E for this Transition which will be triggered
by a event trigger. |
InternalTransitionConfigurer<S,E> |
guard(Guard<S,E> guard)
Specify a
Guard for this Transition. |
InternalTransitionConfigurer<S,E> |
guardExpression(java.lang.String expression)
Specify a
Guard backed by a SpEL expression for this Transition. |
InternalTransitionConfigurer<S,E> |
source(S source)
Specify a source state
S for this Transition. |
InternalTransitionConfigurer<S,E> |
state(S state)
Specify a state this transition should belong to.
|
InternalTransitionConfigurer<S,E> |
timer(long period)
Specify that this transition is triggered by a time.
|
addObjectPostProcessor, and, getBuilder, init, isAssignable, setBuilderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandpublic void configure(StateMachineTransitionBuilder<S,E> builder) throws java.lang.Exception
AnnotationConfigurerAnnotationBuilder by setting the necessary properties
on the AnnotationBuilder.configure in interface AnnotationConfigurer<StateMachineTransitions<S,E>,StateMachineTransitionBuilder<S,E>>configure in class AnnotationConfigurerAdapter<StateMachineTransitions<S,E>,StateMachineTransitionConfigurer<S,E>,StateMachineTransitionBuilder<S,E>>builder - the builderjava.lang.Exception - if error occurredpublic InternalTransitionConfigurer<S,E> source(S source)
TransitionConfigurerS for this Transition.source in interface TransitionConfigurer<InternalTransitionConfigurer<S,E>,S,E>source - the source state Spublic InternalTransitionConfigurer<S,E> state(S state)
TransitionConfigurerstate in interface TransitionConfigurer<InternalTransitionConfigurer<S,E>,S,E>state - the state Spublic InternalTransitionConfigurer<S,E> event(E event)
TransitionConfigurerE for this Transition which will be triggered
by a event trigger.event in interface TransitionConfigurer<InternalTransitionConfigurer<S,E>,S,E>event - the event for transitionpublic InternalTransitionConfigurer<S,E> timer(long period)
TransitionConfigurertimer in interface TransitionConfigurer<InternalTransitionConfigurer<S,E>,S,E>period - timer period in millispublic InternalTransitionConfigurer<S,E> action(Action<S,E> action)
TransitionConfigurerAction for this Transition.action in interface TransitionConfigurer<InternalTransitionConfigurer<S,E>,S,E>action - the actionpublic InternalTransitionConfigurer<S,E> guard(Guard<S,E> guard)
TransitionConfigurerGuard for this Transition.guard in interface TransitionConfigurer<InternalTransitionConfigurer<S,E>,S,E>guard - the guardpublic InternalTransitionConfigurer<S,E> guardExpression(java.lang.String expression)
TransitionConfigurerGuard backed by a SpEL expression for this Transition.guardExpression in interface TransitionConfigurer<InternalTransitionConfigurer<S,E>,S,E>expression - the SpEL expression