Class DefaultEntryTransitionConfigurer<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.DefaultEntryTransitionConfigurer<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>> EntryTransitionConfigurer<S,
E>
public class DefaultEntryTransitionConfigurer<S,E>
extends AnnotationConfigurerAdapter<TransitionsData<S,E>,StateMachineTransitionConfigurer<S,E>,StateMachineTransitionBuilder<S,E>>
implements EntryTransitionConfigurer<S,E>
Default implementation of a
EntryTransitionConfigurer
.- 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
.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
-
DefaultEntryTransitionConfigurer
public DefaultEntryTransitionConfigurer()
-
-
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:EntryTransitionConfigurer
Specify a source stateS
for thisTransition
.- Specified by:
source
in interfaceEntryTransitionConfigurer<S,
E> - Parameters:
source
- the source stateS
- Returns:
- configurer for chaining
-
target
Description copied from interface:EntryTransitionConfigurer
Specify a target stateS
for thisTransition
.- Specified by:
target
in interfaceEntryTransitionConfigurer<S,
E> - Parameters:
target
- the target stateS
- Returns:
- configurer for chaining
-