@Configuration @EnableConfigurationProperties(value={EventProcessorProperties.class,DistributedCommandBusProperties.class}) public class AxonAutoConfiguration extends Object implements org.springframework.beans.factory.BeanClassLoaderAware
Constructor and Description |
---|
AxonAutoConfiguration(EventProcessorProperties eventProcessorProperties) |
Modifier and Type | Method and Description |
---|---|
SimpleCommandBus |
commandBus(TransactionManager txManager,
AxonConfiguration axonConfiguration) |
CommandGateway |
commandGateway(CommandBus commandBus) |
void |
configureEventHandling(EventHandlingConfiguration eventHandlingConfiguration,
org.springframework.context.ApplicationContext applicationContext) |
SimpleEventBus |
eventBus(AxonConfiguration configuration) |
EmbeddedEventStore |
eventStore(EventStorageEngine storageEngine,
AxonConfiguration configuration) |
CorrelationDataProvider |
messageOriginProvider() |
SimpleQueryBus |
queryBus(AxonConfiguration axonConfiguration,
TransactionManager transactionManager) |
SimpleQueryBus |
queryBus(AxonConfiguration axonConfiguration,
TransactionManager transactionManager,
QueryInvocationErrorHandler eh) |
XStreamSerializer |
serializer() |
void |
setBeanClassLoader(ClassLoader classLoader) |
public AxonAutoConfiguration(EventProcessorProperties eventProcessorProperties)
@Bean @Primary @ConditionalOnMissingQualifiedBean(beanClass=Serializer.class, qualifier="!eventSerializer") public XStreamSerializer serializer()
@Bean @ConditionalOnMissingBean public CorrelationDataProvider messageOriginProvider()
@Qualifier(value="eventStore") @Bean(name="eventBus") @ConditionalOnMissingBean(value=EventBus.class) @ConditionalOnBean(value=EventStorageEngine.class) public EmbeddedEventStore eventStore(EventStorageEngine storageEngine, AxonConfiguration configuration)
@ConditionalOnMissingBean @Bean public CommandGateway commandGateway(CommandBus commandBus)
@Bean @ConditionalOnMissingBean(value={EventStorageEngine.class,EventBus.class}) public SimpleEventBus eventBus(AxonConfiguration configuration)
@Autowired public void configureEventHandling(EventHandlingConfiguration eventHandlingConfiguration, org.springframework.context.ApplicationContext applicationContext)
@ConditionalOnMissingBean(ignored=DistributedCommandBus.class, value=CommandBus.class) @Qualifier(value="localSegment") @Bean public SimpleCommandBus commandBus(TransactionManager txManager, AxonConfiguration axonConfiguration)
@ConditionalOnMissingBean(value={QueryBus.class,QueryInvocationErrorHandler.class}) @Qualifier(value="localSegment") @Bean public SimpleQueryBus queryBus(AxonConfiguration axonConfiguration, TransactionManager transactionManager)
@ConditionalOnBean(value=QueryInvocationErrorHandler.class) @ConditionalOnMissingBean(value=QueryBus.class) @Qualifier(value="localSegment") @Bean public SimpleQueryBus queryBus(AxonConfiguration axonConfiguration, TransactionManager transactionManager, QueryInvocationErrorHandler eh)
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
Copyright © 2010–2017. All rights reserved.