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, 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 InternalTransitionConfigurer<S,E> source(S source)
TransitionConfigurer
S
for this Transition
.source
in interface TransitionConfigurer<InternalTransitionConfigurer<S,E>,S,E>
source
- the source state S
public InternalTransitionConfigurer<S,E> state(S state)
TransitionConfigurer
state
in interface TransitionConfigurer<InternalTransitionConfigurer<S,E>,S,E>
state
- the state S
public InternalTransitionConfigurer<S,E> event(E event)
TransitionConfigurer
E
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)
TransitionConfigurer
timer
in interface TransitionConfigurer<InternalTransitionConfigurer<S,E>,S,E>
period
- timer period in millispublic InternalTransitionConfigurer<S,E> timerOnce(long period)
TransitionConfigurer
timerOnce
in interface TransitionConfigurer<InternalTransitionConfigurer<S,E>,S,E>
period
- timer period in millispublic InternalTransitionConfigurer<S,E> action(Action<S,E> action)
TransitionConfigurer
Action
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)
TransitionConfigurer
Action
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)
TransitionConfigurer
Guard
for this Transition
.guard
in interface TransitionConfigurer<InternalTransitionConfigurer<S,E>,S,E>
guard
- the guardpublic InternalTransitionConfigurer<S,E> guardExpression(java.lang.String expression)
TransitionConfigurer
Guard
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)
TransitionConfigurer
Transition
.secured
in interface TransitionConfigurer<InternalTransitionConfigurer<S,E>,S,E>
attributes
- the security attributesmatch
- the match typepublic InternalTransitionConfigurer<S,E> secured(java.lang.String expression)
TransitionConfigurer
Transition
.secured
in interface TransitionConfigurer<InternalTransitionConfigurer<S,E>,S,E>
expression
- the security expression