public class SpringAxonAutoConfigurer extends Object implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.beans.factory.BeanFactoryAware
This component is backed by a DefaultConfiguration (see DefaultConfigurer.defaultConfiguration()
and registers the following beans if present in the ApplicationContext:
CommandBus
EventStorageEngine
or EventBus
Serializer
TokenStore
PlatformTransactionManager
TransactionManager
SagaStore
ResourceInjector
(which defaults to SpringResourceInjector
Furthermore, all beans with an @Aggregate
or @Saga
annotation are inspected and
required components to operate the Aggregate or Saga are registered.
EnableAxon
Modifier and Type | Class and Description |
---|---|
static class |
SpringAxonAutoConfigurer.ImportSelector
Implementation of an
SpringAxonAutoConfigurer.ImportSelector that enables the import of the SpringAxonAutoConfigurer after
all @Configuration beans have been processed. |
Modifier and Type | Field and Description |
---|---|
static String |
AXON_CONFIGURATION_BEAN
Name of the
AxonConfiguration bean. |
static String |
AXON_CONFIGURER_BEAN
Name of the
Configurer bean. |
Constructor and Description |
---|
SpringAxonAutoConfigurer() |
Modifier and Type | Method and Description |
---|---|
void |
registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
public static final String AXON_CONFIGURATION_BEAN
AxonConfiguration
bean.public static final String AXON_CONFIGURER_BEAN
Configurer
bean.public void registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
registerBeanDefinitions
in interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
Copyright © 2010–2018. All rights reserved.