Class ReactorAutoConfiguration
java.lang.Object
org.axonframework.extension.springboot.autoconfig.ReactorAutoConfiguration
@AutoConfiguration
@AutoConfigureAfter(AxonAutoConfiguration.class)
@ConditionalOnClass(name={"reactor.core.publisher.Mono","org.axonframework.extension.reactor.messaging.core.ReactorMessageDispatchInterceptor"})
public class ReactorAutoConfiguration
extends Object
AutoConfiguration for the Axon Framework Reactor extension.
Discovers ReactorMessageDispatchInterceptor beans from the Spring application context and registers them on
the ReactorDispatchInterceptorRegistry. The reactor gateways themselves are created by
ReactorConfigurationDefaults, which is registered as a
ConfigurationEnhancer via the service loader.
- Since:
- 5.1.0
- Author:
- Theo Emanuelsson
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactorDispatchInterceptorEnhancer(Optional<List<ReactorMessageDispatchInterceptor<? super CommandMessage>>> commandInterceptors, Optional<List<ReactorMessageDispatchInterceptor<? super EventMessage>>> eventInterceptors, Optional<List<ReactorMessageDispatchInterceptor<? super QueryMessage>>> queryInterceptors) Creates aDecoratorDefinitionthat registers all discoveredReactorMessageDispatchInterceptorbeans on theReactorDispatchInterceptorRegistry.
-
Constructor Details
-
ReactorAutoConfiguration
public ReactorAutoConfiguration()
-
-
Method Details
-
reactorDispatchInterceptorEnhancer
@Bean @ConditionalOnBean(ReactorMessageDispatchInterceptor.class) public DecoratorDefinition<ReactorDispatchInterceptorRegistry,ReactorDispatchInterceptorRegistry> reactorDispatchInterceptorEnhancer(Optional<List<ReactorMessageDispatchInterceptor<? super CommandMessage>>> commandInterceptors, Optional<List<ReactorMessageDispatchInterceptor<? super EventMessage>>> eventInterceptors, Optional<List<ReactorMessageDispatchInterceptor<? super QueryMessage>>> queryInterceptors) Creates aDecoratorDefinitionthat registers all discoveredReactorMessageDispatchInterceptorbeans on theReactorDispatchInterceptorRegistry.- Parameters:
commandInterceptors-CommandMessage-specific reactor dispatch interceptorseventInterceptors-EventMessage-specific reactor dispatch interceptorsqueryInterceptors-QueryMessage-specific reactor dispatch interceptors- Returns:
- a decorator definition that registers the discovered interceptors
-