Skip to content

Commit

Permalink
#18 fix name of command handler and publisher methods
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanPirnbaum committed Jan 4, 2021
1 parent dd80f6b commit e82a459
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.lang.annotation.Target;

/**
* Identifies a command dispatcher in the context of CQRS, i.e. logic to publish a {@link Command}.
* Identifies a command dispatcher in the context of CQRS, i.e. logic to dispatch a {@link Command}.
*
* @author Christian Stettler
* @author Henning Schwentner
Expand All @@ -37,11 +37,11 @@
public @interface CommandDispatcher {

/**
* Optional identification of the command published by this publisher.
* This information may be used for easier linkage between command and publisher
* 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 {@link Command#namespace()} and
* {@link Command#name()}, separated by '.' (dot).
*/
String publishes() default "";
String dispatches() default "";

}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
* 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 {@link CommandHandler#handlesEventName()} needs to
* be set to the respective namespace and the {@link CommandHandler#handlesCommandName()} ()} needs to
* be set accordingly.
*
* If the handler doesn't care about the namespace, the value may be set to the '*' (asterisk) placeholder.
Expand All @@ -56,11 +56,11 @@
* 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 {@link Command#name()}. When leaving the default value,
* it is assumed that the method signature makes clear what event is consumed.
* 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.
*/
String handlesEventName() default "";
String handlesCommandName() default "";

}

0 comments on commit e82a459

Please sign in to comment.