Class CommandGatewayConfiguration

java.lang.Object
ai.stapi.axonsystem.configuration.CommandGatewayConfiguration

@AutoConfiguration @AutoConfigureAfter(org.axonframework.springboot.autoconfig.EventProcessingAutoConfiguration.class) public class CommandGatewayConfiguration extends Object
  • Constructor Details

    • CommandGatewayConfiguration

      public CommandGatewayConfiguration()
  • Method Details

    • configuredCommandGateway

      @Bean @ConditionalOnMissingBean public org.axonframework.commandhandling.gateway.CommandGateway configuredCommandGateway(@Autowired org.axonframework.commandhandling.CommandBus commandBus, @Autowired List<org.axonframework.messaging.MessageDispatchInterceptor<? super org.axonframework.commandhandling.CommandMessage<?>>> messageDispatchInterceptors)
    • configuredCommandBus

      @Bean @ConditionalOnMissingBean(ignoredType={"org.axonframework.commandhandling.distributed.DistributedCommandBus","org.axonframework.axonserver.connector.command.AxonServerCommandBus","org.axonframework.extensions.multitenancy.components.commandhandeling.MultiTenantCommandBus"}, value=org.axonframework.commandhandling.CommandBus.class) @Qualifier("localSegment") public org.axonframework.commandhandling.SimpleCommandBus configuredCommandBus(@Autowired org.axonframework.common.transaction.TransactionManager txManager, @Autowired org.axonframework.config.Configuration axonConfiguration, @Autowired org.axonframework.commandhandling.DuplicateCommandHandlerResolver duplicateCommandHandlerResolver, @Autowired List<org.axonframework.messaging.MessageHandlerInterceptor<? super org.axonframework.commandhandling.CommandMessage<?>>> messageHandlerInterceptors)
    • commandDispatchedAtInterceptor

      @Bean public CommandDispatchedAtInterceptor commandDispatchedAtInterceptor()
    • commandValidatorDispatchInterceptor

      @Bean @Profile("dev") public CommandValidatorDispatchInterceptor commandValidatorDispatchInterceptor(ai.stapi.graphsystem.commandvalidation.model.CommandValidator commandValidator)
    • messageCorrelationProvider

      @Bean public org.axonframework.messaging.correlation.CorrelationDataProvider messageCorrelationProvider()