Interface CommandHandlingModule.CommandHandlerPhase

All Superinterfaces:
ModuleBuilder<CommandHandlingModule>
Enclosing interface:
CommandHandlingModule

public static interface CommandHandlingModule.CommandHandlerPhase extends ModuleBuilder<CommandHandlingModule>
The command handler configuration phase of the command handling module.

Every registered CommandHandler will be subscribed with the CommandBus of the ApplicationConfigurer this module is given to.

Provides roughly two options for configuring command handlers. Firstly, a command handler can be registered as is, through the commandHandler(QualifiedName, CommandHandler) method. Secondly, if the command handler provides components from the Configuration, a builder of the command handler can be registered through the commandHandler(QualifiedName, ComponentBuilder) method.