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 Details

    • 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 given configurationLambda within 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.