S
- the type of stateE
- the type of eventpublic class DefaultLocalTransitionConfigurer<S,E> extends AbstractTransitionConfigurer<S,E> implements LocalTransitionConfigurer<S,E>
LocalTransitionConfigurer
.Constructor and Description |
---|
DefaultLocalTransitionConfigurer() |
Modifier and Type | Method and Description |
---|---|
LocalTransitionConfigurer<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 . |
LocalTransitionConfigurer<S,E> |
event(E event)
Specify event
E for this Transition which will be triggered
by a event trigger. |
LocalTransitionConfigurer<S,E> |
guard(Guard<S,E> guard)
Specify a
Guard for this Transition . |
LocalTransitionConfigurer<S,E> |
guardExpression(java.lang.String expression)
Specify a
Guard backed by a SpEL expression for this Transition . |
LocalTransitionConfigurer<S,E> |
secured(java.lang.String expression)
Specify a security expression for this
Transition . |
LocalTransitionConfigurer<S,E> |
secured(java.lang.String attributes,
SecurityRule.ComparisonType match)
Specify a security attributes for this
Transition . |
LocalTransitionConfigurer<S,E> |
source(S source)
Specify a source state
S for this Transition . |
LocalTransitionConfigurer<S,E> |
state(S state)
Specify a state this transition should belong to.
|
LocalTransitionConfigurer<S,E> |
target(S target)
Specify a target state
S for this Transition . |
LocalTransitionConfigurer<S,E> |
timer(long period)
Specify that this transition is triggered by a time.
|
LocalTransitionConfigurer<S,E> |
timerOnce(long period)
Specify that this transition is triggered once by a time after a delay.
|
addAction, getActions, getCount, getEvent, getGuard, getPeriod, getSecurityRule, getSource, getState, getTarget, setCount, setEvent, setGuard, setPeriod, setSecurityRule, setSecurityRule, setSource, setState, setTarget
addObjectPostProcessor, and, getBuilder, init, isAssignable, setBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and
public void configure(StateMachineTransitionBuilder<S,E> builder) throws java.lang.Exception
AnnotationConfigurer
AnnotationBuilder
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 LocalTransitionConfigurer<S,E> source(S source)
TransitionConfigurer
S
for this Transition
.source
in interface TransitionConfigurer<LocalTransitionConfigurer<S,E>,S,E>
source
- the source state S
public LocalTransitionConfigurer<S,E> target(S target)
LocalTransitionConfigurer
S
for this Transition
.target
in interface LocalTransitionConfigurer<S,E>
target
- the target state S
public LocalTransitionConfigurer<S,E> state(S state)
TransitionConfigurer
state
in interface TransitionConfigurer<LocalTransitionConfigurer<S,E>,S,E>
state
- the state S
public LocalTransitionConfigurer<S,E> event(E event)
TransitionConfigurer
E
for this Transition
which will be triggered
by a event trigger.event
in interface TransitionConfigurer<LocalTransitionConfigurer<S,E>,S,E>
event
- the event for transitionpublic LocalTransitionConfigurer<S,E> timer(long period)
TransitionConfigurer
timer
in interface TransitionConfigurer<LocalTransitionConfigurer<S,E>,S,E>
period
- timer period in millispublic LocalTransitionConfigurer<S,E> timerOnce(long period)
TransitionConfigurer
timerOnce
in interface TransitionConfigurer<LocalTransitionConfigurer<S,E>,S,E>
period
- timer period in millispublic LocalTransitionConfigurer<S,E> action(Action<S,E> action)
TransitionConfigurer
Action
for this Transition
.action
in interface TransitionConfigurer<LocalTransitionConfigurer<S,E>,S,E>
action
- the actionpublic LocalTransitionConfigurer<S,E> guard(Guard<S,E> guard)
TransitionConfigurer
Guard
for this Transition
.guard
in interface TransitionConfigurer<LocalTransitionConfigurer<S,E>,S,E>
guard
- the guardpublic LocalTransitionConfigurer<S,E> guardExpression(java.lang.String expression)
TransitionConfigurer
Guard
backed by a SpEL expression for this Transition
.guardExpression
in interface TransitionConfigurer<LocalTransitionConfigurer<S,E>,S,E>
expression
- the SpEL expressionpublic LocalTransitionConfigurer<S,E> secured(java.lang.String attributes, SecurityRule.ComparisonType match)
TransitionConfigurer
Transition
.secured
in interface TransitionConfigurer<LocalTransitionConfigurer<S,E>,S,E>
attributes
- the security attributesmatch
- the match typepublic LocalTransitionConfigurer<S,E> secured(java.lang.String expression)
TransitionConfigurer
Transition
.secured
in interface TransitionConfigurer<LocalTransitionConfigurer<S,E>,S,E>
expression
- the security expression