Annotation Type CommandDispatcher


  • @Documented
    @Retention(RUNTIME)
    @Target({METHOD,ANNOTATION_TYPE})
    public @interface CommandDispatcher
    Identifies a command dispatcher in the context of CQRS, i.e. logic to dispatch a Command.
    Since:
    1.1
    See Also:
    CQRS Documents by Greg Young - Commands
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String dispatches
      Optional identification of the command dispatched by this dispatcher.
    • Element Detail

      • dispatches

        java.lang.String dispatches
        Optional identification of the command dispatched by this dispatcher. This information may be used for easier linkage between command and dispatcher by external tools and refers to the combination of Command.namespace() and Command.name(), separated by '.' (dot).
        Default:
        ""