Class StateMachineFactoryConfiguration<S,E>
java.lang.Object
org.springframework.statemachine.config.common.annotation.AbstractImportingAnnotationConfiguration<StateMachineConfigBuilder<S,E>,StateMachineConfig<S,E>>
org.springframework.statemachine.config.configuration.StateMachineFactoryConfiguration<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.context.annotation.ImportBeanDefinitionRegistrar
,org.springframework.context.EnvironmentAware
@Configuration
public class StateMachineFactoryConfiguration<S,E>
extends AbstractImportingAnnotationConfiguration<StateMachineConfigBuilder<S,E>,StateMachineConfig<S,E>>
Configuration
which gets imported from EnableStateMachineFactory
and registers
a StateMachineFactory
build from a StateMachineConfigurerAdapter
via
a BeanDefinition
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.statemachine.config.common.annotation.AbstractImportingAnnotationConfiguration
AbstractImportingAnnotationConfiguration.BeanDelegatingFactoryBean<T,
B extends AnnotationBuilder<O>, O> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.beans.factory.config.BeanDefinition
buildBeanDefinition
(org.springframework.core.type.AnnotationMetadata importingClassMetadata, Class<? extends Annotation> namedAnnotation) Called to get a bean definition to register.protected List<Class<? extends Annotation>>
Gets the annotations specific for this configurer.Methods inherited from class org.springframework.statemachine.config.common.annotation.AbstractImportingAnnotationConfiguration
getBeanFactory, getEnvironment, registerBeanDefinitions, setBeanFactory, setEnvironment
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar
registerBeanDefinitions
-
Constructor Details
-
StateMachineFactoryConfiguration
public StateMachineFactoryConfiguration()
-
-
Method Details
-
buildBeanDefinition
protected org.springframework.beans.factory.config.BeanDefinition buildBeanDefinition(org.springframework.core.type.AnnotationMetadata importingClassMetadata, Class<? extends Annotation> namedAnnotation) throws Exception Description copied from class:AbstractImportingAnnotationConfiguration
Called to get a bean definition to register.- Specified by:
buildBeanDefinition
in classAbstractImportingAnnotationConfiguration<StateMachineConfigBuilder<S,
E>, StateMachineConfig<S, E>> - Parameters:
importingClassMetadata
- annotation metadata of the importing classnamedAnnotation
- found annotations for bean names- Returns:
- the bean definition to register
- Throws:
Exception
- if error occurred
-
getAnnotations
Description copied from class:AbstractImportingAnnotationConfiguration
Gets the annotations specific for this configurer.- Specified by:
getAnnotations
in classAbstractImportingAnnotationConfiguration<StateMachineConfigBuilder<S,
E>, StateMachineConfig<S, E>> - Returns:
- the annotations
-