Annotation Interface Command


Deprecated.
since 1.7, for removal in 2.0. Use Command instead.
Identifies a command in the context of CQRS, i.e. a request to the system for the change of data. Commands are always in imperative tense and thus, unlike an event, do not state that something has already happened, but something is requested to happen. With that, the CommandHandler which is processing the command has the option reject the command.
Since:
1.1
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Deprecated.
    An identifier for the name of the command used to abstract away from the type system and to guard against refactorings.
    Deprecated.
    An identifier for the namespace of the command to group multiple commands and let clients express their interest in all commands of a specific namespace.
  • Element Details

    • namespace

      String namespace
      Deprecated.
      An identifier for the namespace of the command to group multiple commands and let clients express their interest in all commands of a specific namespace. If not set, external tooling may default this to the fully-qualified package name of the annotated type.
      Default:
      ""
    • name

      String name
      Deprecated.
      An identifier for the name of the command used to abstract away from the type system and to guard against refactorings. If not set, external tooling may default this to the simple class name of the annotated type.
      Default:
      ""