Class MessagingConfigurer

java.lang.Object
org.axonframework.messaging.core.configuration.MessagingConfigurer
All Implemented Interfaces:
ApplicationConfigurer

public class MessagingConfigurer extends Object implements ApplicationConfigurer
The messaging ApplicationConfigurer of Axon Framework's configuration API.

Provides register operations for command, event, and query infrastructure components.

This configurer registers several defaults, provided by class MessagingConfigurationDefaults.
To replace or decorate any of these defaults, use their respective interfaces as the identifier. For example, to adjust the CommandBus, invoke componentRegistry(Consumer) and ComponentRegistry.registerComponent(Class, ComponentBuilder) with CommandBus.class to replace it.


     MessagingConfigurer.create()
                        .componentRegistry(cr -> cr.registerEnhancer(CommandBus.class, (config, component) -> ...));
 
Since:
5.0.0
Author:
Allard Buijze, Steven van Beelen