S
- the type of stateE
- the type of event@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
.AbstractImportingAnnotationConfiguration.BeanDelegatingFactoryBean<T,B extends AnnotationBuilder<O>,O>
Constructor and Description |
---|
StateMachineFactoryConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.beans.factory.config.BeanDefinition |
buildBeanDefinition(org.springframework.core.type.AnnotationMetadata importingClassMetadata,
java.lang.Class<? extends java.lang.annotation.Annotation> namedAnnotation)
Called to get a bean definition to register.
|
protected java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getAnnotations()
Gets the annotations specific for this configurer.
|
getBeanFactory, getEnvironment, registerBeanDefinitions, setBeanFactory, setEnvironment
protected org.springframework.beans.factory.config.BeanDefinition buildBeanDefinition(org.springframework.core.type.AnnotationMetadata importingClassMetadata, java.lang.Class<? extends java.lang.annotation.Annotation> namedAnnotation) throws java.lang.Exception
AbstractImportingAnnotationConfiguration
buildBeanDefinition
in class AbstractImportingAnnotationConfiguration<StateMachineConfigBuilder<S,E>,StateMachineConfig<S,E>>
importingClassMetadata
- annotation metadata of the importing classnamedAnnotation
- found annotations for bean namesjava.lang.Exception
- if error occurredprotected java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> getAnnotations()
AbstractImportingAnnotationConfiguration
getAnnotations
in class AbstractImportingAnnotationConfiguration<StateMachineConfigBuilder<S,E>,StateMachineConfig<S,E>>