Class DefaultJoinTransitionConfigurer<S,E>
java.lang.Object
org.springframework.statemachine.config.common.annotation.AnnotationConfigurerAdapter<TransitionsData<S,E>,StateMachineTransitionConfigurer<S,E>,StateMachineTransitionBuilder<S,E>>
org.springframework.statemachine.config.configurers.DefaultJoinTransitionConfigurer<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Implemented Interfaces:
AnnotationConfigurer<TransitionsData<S,
,E>, StateMachineTransitionBuilder<S, E>> AnnotationConfigurerBuilder<StateMachineTransitionConfigurer<S,
,E>> JoinTransitionConfigurer<S,
E>
public class DefaultJoinTransitionConfigurer<S,E>
extends AnnotationConfigurerAdapter<TransitionsData<S,E>,StateMachineTransitionConfigurer<S,E>,StateMachineTransitionBuilder<S,E>>
implements JoinTransitionConfigurer<S,E>
Default implementation of a
JoinTransitionConfigurer
.- Author:
- Janne Valkealahti
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(StateMachineTransitionBuilder<S, E> builder) Configure theAnnotationBuilder
by setting the necessary properties on theAnnotationBuilder
.Specify a source stateS
for thisTransition
.sources
(Collection<S> sources) Specify a source statesS
for thisTransition
.Specify a target stateS
for thisTransition
.Methods inherited from class org.springframework.statemachine.config.common.annotation.AnnotationConfigurerAdapter
addObjectPostProcessor, and, getBuilder, init, isAssignable, setBuilder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.statemachine.config.common.annotation.AnnotationConfigurerBuilder
and
-
Constructor Details
-
DefaultJoinTransitionConfigurer
public DefaultJoinTransitionConfigurer()
-
-
Method Details
-
configure
Description copied from interface:AnnotationConfigurer
Configure theAnnotationBuilder
by setting the necessary properties on theAnnotationBuilder
.- Specified by:
configure
in interfaceAnnotationConfigurer<S,
E> - Overrides:
configure
in classAnnotationConfigurerAdapter<TransitionsData<S,
E>, StateMachineTransitionConfigurer<S, E>, StateMachineTransitionBuilder<S, E>> - Parameters:
builder
- the builder- Throws:
Exception
- if error occurred
-
source
Description copied from interface:JoinTransitionConfigurer
Specify a source stateS
for thisTransition
.- Specified by:
source
in interfaceJoinTransitionConfigurer<S,
E> - Parameters:
source
- the source stateS
- Returns:
- configurer for chaining
-
sources
Description copied from interface:JoinTransitionConfigurer
Specify a source statesS
for thisTransition
.- Specified by:
sources
in interfaceJoinTransitionConfigurer<S,
E> - Parameters:
sources
- the sources- Returns:
- configurer for chaining
-
target
Description copied from interface:JoinTransitionConfigurer
Specify a target stateS
for thisTransition
.- Specified by:
target
in interfaceJoinTransitionConfigurer<S,
E> - Parameters:
target
- the target stateS
- Returns:
- configurer for chaining
-