@Configuration @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) |
public AxonAutoConfiguration(EventProcessorProperties eventProcessorProperties, SerializerProperties serializerProperties)
@Bean @Primary @ConditionalOnMissingQualifiedBean(beanClass=Serializer.class, qualifier="!eventSerializer,messageSerializer") public Serializer serializer(RevisionResolver revisionResolver)
@Bean @ConditionalOnMissingBean public 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 @Qualifier(value="messageSerializer") @ConditionalOnMissingQualifiedBean(beanClass=Serializer.class, qualifier="messageSerializer") public Serializer messageSerializer(Serializer genericSerializer, 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)
@Bean @ConditionalOnMissingBean(value={EventStorageEngine.class,EventBus.class}) public SimpleEventBus eventBus(AxonConfiguration configuration)
@Autowired public void configureEventHandling(EventHandlingConfiguration eventHandlingConfiguration, EventProcessingConfiguration eventProcessingConfiguration, 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–2018. All rights reserved.