Class ReactorConfigurationDefaults
java.lang.Object
org.axonframework.extension.reactor.messaging.core.configuration.ReactorConfigurationDefaults
- All Implemented Interfaces:
ConfigurationEnhancer
A
ConfigurationEnhancer registering the default reactor components for the Reactor extension.
Will only register the following components if there is no component registered for the given class yet:
- Registers a
DefaultReactorDispatchInterceptorRegistryfor classReactorDispatchInterceptorRegistry - Registers a
DefaultReactorCommandGatewayfor classReactorCommandGateway - Registers a
DefaultReactorEventGatewayfor classReactorEventGateway - Registers a
DefaultReactorQueryGatewayfor classReactorQueryGateway
The order is set to Integer.MAX_VALUE (same as
MessagingConfigurationDefaults) since this enhancer provides
defaults that should be overridable by user-registered components.
- Since:
- 5.1.0
- Author:
- Theo Emanuelsson
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe order ofthisenhancer compared to others, equal toInteger.MAX_VALUE. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenhance(ComponentRegistry registry) intorder()Returns the relative order this enhancer should be invoked in, compared to other instances.
-
Field Details
-
ENHANCER_ORDER
public static final int ENHANCER_ORDERThe order ofthisenhancer compared to others, equal toInteger.MAX_VALUE.- See Also:
-
-
Constructor Details
-
ReactorConfigurationDefaults
public ReactorConfigurationDefaults()
-
-
Method Details
-
order
public int order()Description copied from interface:ConfigurationEnhancerReturns the relative order this enhancer should be invoked in, compared to other instances.Use lower (negative) values for enhancers providing sensible defaults, and higher values for enhancers that should be able to override values potentially previously set. Defaults to
0when not set.- Specified by:
orderin interfaceConfigurationEnhancer- Returns:
- The order in which this enhancer should be invoked.
-
enhance
Description copied from interface:ConfigurationEnhancer- Specified by:
enhancein interfaceConfigurationEnhancer- Parameters:
registry- The registry instance to enhance.
-