Interface CommandHandlingModule.SetupPhase
- Enclosing interface:
CommandHandlingModule
public static interface CommandHandlingModule.SetupPhase
The setup phase of the command handling module.
The commandHandlers() method allows users to start configuring all the
CommandHandlers for this module.
-
Method Summary
Modifier and TypeMethodDescriptionInitiates the command handler configuration phase for this module.commandHandlers(Consumer<CommandHandlingModule.CommandHandlerPhase> configurationLambda) Initiates the command handler configuration phase for this module, as well as performing the givenconfigurationLambdawithin this phase.
-
Method Details
-
commandHandlers
CommandHandlingModule.CommandHandlerPhase commandHandlers()Initiates the command handler configuration phase for this module.- Returns:
- The command handler phase of this module, for a fluent API.
-
commandHandlers
default CommandHandlingModule.CommandHandlerPhase commandHandlers(@Nonnull Consumer<CommandHandlingModule.CommandHandlerPhase> configurationLambda) Initiates the command handler configuration phase for this module, as well as performing the givenconfigurationLambdawithin this phase.- Parameters:
configurationLambda- A consumer of the command handler phase, performing command handler configuration right away.- Returns:
- The command handler phase of this module, for a fluent API.
-