@Configuration @AutoConfigureAfter(value=EventProcessingAutoConfiguration.class) @EnableConfigurationProperties(value={EventProcessorProperties.class,DistributedCommandBusProperties.class,SerializerProperties.class}) public class AxonAutoConfiguration extends Object implements org.springframework.beans.factory.BeanClassLoaderAware
Constructor and Description |
---|
AxonAutoConfiguration(EventProcessorProperties eventProcessorProperties,
SerializerProperties serializerProperties,
org.springframework.context.ApplicationContext applicationContext) |
public AxonAutoConfiguration(EventProcessorProperties eventProcessorProperties, SerializerProperties serializerProperties, org.springframework.context.ApplicationContext applicationContext)
@Bean @ConditionalOnMissingBean public RevisionResolver revisionResolver()
@Bean @Primary @ConditionalOnMissingQualifiedBean(beanClass=Serializer.class, qualifier="!eventSerializer,messageSerializer") public Serializer serializer(RevisionResolver revisionResolver)
@Bean @Qualifier(value="messageSerializer") @ConditionalOnMissingQualifiedBean(beanClass=Serializer.class, qualifier="messageSerializer") public Serializer messageSerializer(Serializer genericSerializer, RevisionResolver revisionResolver)
@Bean @Qualifier(value="eventSerializer") @ConditionalOnMissingQualifiedBean(beanClass=Serializer.class, qualifier="eventSerializer") public Serializer eventSerializer(@Qualifier(value="messageSerializer") Serializer messageSerializer, Serializer generalSerializer, RevisionResolver revisionResolver)
@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)
@ConditionalOnMissingBean @Bean public QueryGateway queryGateway(QueryBus queryBus)
@Bean @ConditionalOnMissingBean(value={EventStorageEngine.class,EventBus.class}) public SimpleEventBus eventBus(AxonConfiguration configuration)
@Autowired public void configureEventHandling(EventProcessingConfigurer eventProcessingConfigurer, org.springframework.context.ApplicationContext applicationContext)
@ConditionalOnMissingBean(ignoredType={"org.axonframework.commandhandling.distributed.DistributedCommandBus","org.axonframework.axonserver.connector.command.AxonServerCommandBus"}, 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–2019. All rights reserved.