Class DistributedCommandBusConfigurationEnhancer
java.lang.Object
org.axonframework.messaging.commandhandling.distributed.DistributedCommandBusConfigurationEnhancer
- All Implemented Interfaces:
ConfigurationEnhancer
@Internal
public class DistributedCommandBusConfigurationEnhancer
extends Object
implements ConfigurationEnhancer
Configuration enhancer for the
DistributedCommandBus, which upon detection of a CommandBusConnector
in the configuration will decorate the regular CommandBus with the provided
connector.- Since:
- 5.0.0
- Author:
- Mitchell Herrijgers
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.axonframework.common.configuration.ConfigurationEnhancer
order
-
Field Details
-
DISTRIBUTED_COMMAND_BUS_ORDER
public static final int DISTRIBUTED_COMMAND_BUS_ORDERThe order in which theDistributedCommandBusis applied to theCommandBusin theComponentRegistry. As such, any decorator with a lower value will be applied to the delegate, and any higher value will be applied to theDistributedCommandBusitself. Using the same value can either lead to application of the decorator to the delegate or the distributed command bus, depending on the order of registration.- See Also:
-
-
Constructor Details
-
DistributedCommandBusConfigurationEnhancer
public DistributedCommandBusConfigurationEnhancer()
-
-
Method Details
-
enhance
Description copied from interface:ConfigurationEnhancer- Specified by:
enhancein interfaceConfigurationEnhancer- Parameters:
componentRegistry- The registry instance to enhance.
-