S
- the type of stateE
- the type of event@Configuration public class StateMachineConfiguration<S,E> extends AbstractImportingAnnotationConfiguration<StateMachineConfigBuilder<S,E>,StateMachineConfig<S,E>>
Configuration
which gets imported from EnableStateMachine
and registers
a StateMachine
build from a StateMachineConfigurerAdapter
via
a BeanDefinition
.AbstractImportingAnnotationConfiguration.BeanDelegatingFactoryBean<T,B extends AnnotationBuilder<O>,O>
Constructor and Description |
---|
StateMachineConfiguration() |
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>>