Class DefaultPersistenceConfigurer<S,E>
java.lang.Object
org.springframework.statemachine.config.common.annotation.AnnotationConfigurerAdapter<ConfigurationData<S,E>,StateMachineConfigurationConfigurer<S,E>,StateMachineConfigurationBuilder<S,E>>
org.springframework.statemachine.config.configurers.DefaultPersistenceConfigurer<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Implemented Interfaces:
AnnotationConfigurer<ConfigurationData<S,
,E>, StateMachineConfigurationBuilder<S, E>> AnnotationConfigurerBuilder<StateMachineConfigurationConfigurer<S,
,E>> PersistenceConfigurer<S,
E>
public class DefaultPersistenceConfigurer<S,E>
extends AnnotationConfigurerAdapter<ConfigurationData<S,E>,StateMachineConfigurationConfigurer<S,E>,StateMachineConfigurationBuilder<S,E>>
implements PersistenceConfigurer<S,E>
Default implementation of a
PersistenceConfigurer
.- Author:
- Janne Valkealahti
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(StateMachineConfigurationBuilder<S, E> builder) Configure theAnnotationBuilder
by setting the necessary properties on theAnnotationBuilder
.runtimePersister
(StateMachineRuntimePersister<S, E, ?> persister) Specify a state machine runtime persister.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
-
DefaultPersistenceConfigurer
public DefaultPersistenceConfigurer()
-
-
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<ConfigurationData<S,
E>, StateMachineConfigurationConfigurer<S, E>, StateMachineConfigurationBuilder<S, E>> - Parameters:
builder
- the builder- Throws:
Exception
- if error occurred
-
runtimePersister
Description copied from interface:PersistenceConfigurer
Specify a state machine runtime persister.- Specified by:
runtimePersister
in interfacePersistenceConfigurer<S,
E> - Parameters:
persister
- the state machine runtime persister- Returns:
- configurer for chaining
-