S - the type of stateE - the type of eventpublic class DefaultInternalTransitionConfigurer<S,E> extends AbstractTransitionConfigurer<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. |
InternalTransitionConfigurer<S,E> |
action(Action<S,E> action,
Action<S,E> error)
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> |
secured(java.lang.String expression)
Specify a security expression for this
Transition. |
InternalTransitionConfigurer<S,E> |
secured(java.lang.String attributes,
SecurityRule.ComparisonType match)
Specify a security attributes 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.
|
InternalTransitionConfigurer<S,E> |
timerOnce(long period)
Specify that this transition is triggered once by a time after a delay.
|
addAction, addAction, getActions, getCount, getEvent, getGuard, getPeriod, getSecurityRule, getSource, getState, getTarget, setCount, setEvent, setGuard, setPeriod, setSecurityRule, setSecurityRule, setSource, setState, setTargetaddObjectPostProcessor, 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<TransitionsData<S,E>,StateMachineTransitionBuilder<S,E>>configure in class AnnotationConfigurerAdapter<TransitionsData<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> timerOnce(long period)
TransitionConfigurertimerOnce 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> action(Action<S,E> action, Action<S,E> error)
TransitionConfigurerAction for this Transition.action in interface TransitionConfigurer<InternalTransitionConfigurer<S,E>,S,E>action - the actionerror - action that will be called if any unexpected exception is thrown by the action.public 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 expressionpublic InternalTransitionConfigurer<S,E> secured(java.lang.String attributes, SecurityRule.ComparisonType match)
TransitionConfigurerTransition.secured in interface TransitionConfigurer<InternalTransitionConfigurer<S,E>,S,E>attributes - the security attributesmatch - the match typepublic InternalTransitionConfigurer<S,E> secured(java.lang.String expression)
TransitionConfigurerTransition.secured in interface TransitionConfigurer<InternalTransitionConfigurer<S,E>,S,E>expression - the security expression