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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(StateMachineConfigurationBuilder<S, E> builder) Configure theAnnotationBuilderby 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, setBuilderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.statemachine.config.common.annotation.AnnotationConfigurerBuilder
and
-
Constructor Details
-
DefaultPersistenceConfigurer
public DefaultPersistenceConfigurer()
-
-
Method Details
-
configure
Description copied from interface:AnnotationConfigurerConfigure theAnnotationBuilderby setting the necessary properties on theAnnotationBuilder.- Specified by:
configurein interfaceAnnotationConfigurer<S,E> - Overrides:
configurein classAnnotationConfigurerAdapter<ConfigurationData<S,E>, StateMachineConfigurationConfigurer<S, E>, StateMachineConfigurationBuilder<S, E>> - Parameters:
builder- the builder- Throws:
Exception- if error occurred
-
runtimePersister
Description copied from interface:PersistenceConfigurerSpecify a state machine runtime persister.- Specified by:
runtimePersisterin interfacePersistenceConfigurer<S,E> - Parameters:
persister- the state machine runtime persister- Returns:
- configurer for chaining
-