@AutoConfiguration @AutoConfigureAfter(value=EventProcessingAutoConfiguration.class) @EnableConfigurationProperties(value={EventProcessorProperties.class,DistributedCommandBusProperties.class,SerializerProperties.class,TagsConfigurationProperties.class}) public class AxonAutoConfiguration extends Object implements org.springframework.beans.factory.BeanClassLoaderAware
Constructor and Description |
---|
AxonAutoConfiguration(EventProcessorProperties eventProcessorProperties,
SerializerProperties serializerProperties,
TagsConfigurationProperties tagsConfigurationProperties,
org.springframework.context.ApplicationContext applicationContext) |
public AxonAutoConfiguration(EventProcessorProperties eventProcessorProperties, SerializerProperties serializerProperties, TagsConfigurationProperties tagsConfigurationProperties, org.springframework.context.ApplicationContext applicationContext)
@Bean public TagsConfiguration tagsConfiguration()
@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 public ConfigurerModule serializerConfigurer(@Qualifier(value="eventSerializer") Serializer eventSerializer, @Qualifier(value="messageSerializer") Serializer messageSerializer, Serializer generalSerializer)
@Bean @ConditionalOnMissingBean public CorrelationDataProvider messageOriginProvider()
@Qualifier(value="eventStore") @Bean(name="eventBus") @ConditionalOnMissingBean(value=EventBus.class) @ConditionalOnBean(value=EventStorageEngine.class) public EmbeddedEventStore eventStore(EventStorageEngine storageEngine, Configuration 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(Configuration configuration)
@ConditionalOnMissingBean @Bean public EventGateway eventGateway(EventBus eventBus)
@ConditionalOnMissingBean(value=Snapshotter.class) @ConditionalOnBean(value=EventStore.class) @Bean public SpringAggregateSnapshotter aggregateSnapshotter(Configuration configuration, HandlerDefinition handlerDefinition, ParameterResolverFactory parameterResolverFactory, EventStore eventStore, TransactionManager transactionManager, SnapshotterSpanFactory spanFactory)
@Autowired public void configureEventHandling(EventProcessingConfigurer eventProcessingConfigurer, org.springframework.context.ApplicationContext applicationContext)
@Bean @ConditionalOnMissingBean public DuplicateCommandHandlerResolver duplicateCommandHandlerResolver()
@ConditionalOnMissingBean(ignoredType={"org.axonframework.commandhandling.distributed.DistributedCommandBus","org.axonframework.axonserver.connector.command.AxonServerCommandBus","org.axonframework.extensions.multitenancy.components.commandhandeling.MultiTenantCommandBus"}, value=CommandBus.class) @Qualifier(value="localSegment") @Bean public SimpleCommandBus commandBus(TransactionManager txManager, Configuration axonConfiguration, DuplicateCommandHandlerResolver duplicateCommandHandlerResolver)
@ConditionalOnMissingBean(value=QueryBus.class) @Qualifier(value="localSegment") @Bean public SimpleQueryBus queryBus(Configuration axonConfiguration, TransactionManager transactionManager)
@Bean public QueryUpdateEmitter queryUpdateEmitter(Configuration configuration)
public void setBeanClassLoader(@Nonnull ClassLoader classLoader)
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
Copyright © 2010–2024. All rights reserved.