Annotation Interface CommandHandler


Deprecated.
since 1.7, for removal in 2.0. Use CommandHandler instead.
Identifies a command handler in the context of CQRS, i.e. logic to process a Command. The command handler may or may not reject the command. In case of processing, the handler takes care of orchestrating the business logic related to the command.
Since:
1.1
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Deprecated.
    Optional identification of the name of the command handled by this handler.
    Deprecated.
    Optional identification of the namespace of the command handled by this handler.
  • Element Details

    • namespace

      String namespace
      Deprecated.
      Optional identification of the namespace of the command handled by this handler. This information may be used for easier linkage between command and handler by external tools and refers to Command.namespace(). When leaving the default value, it is assumed that the method signature makes clear what command is consumed. If the handler takes care of all commands of a specific namespace, the value of this field needs to be set to the respective namespace and the name() needs to be set accordingly. If the handler doesn't care about the namespace, the value may be set to the '*' (asterisk) placeholder.
      Default:
      ""
    • name

      String name
      Deprecated.
      Optional identification of the name of the command handled by this handler. This information may be used for easier linkage between command and handler by external tools and refers to Command.name(). When leaving the default value, it is assumed that the method signature makes clear what command is consumed. If the handler takes care of all commands of a specific namespace, the value of this field needs to be set to the '*' (asterisk) placeholder.
      Default:
      ""