Package com.opencqrs.framework.command
Interface Command
public interface Command
Interface to be implemented by commands that can be handled by
CommandHandler
s.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
The subject condition checked beforeCommandHandler
execution. -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the subject of this command, needed to source the necessary events for the command execution.default Command.SubjectCondition
Specifies the condition to check for the givengetSubject()
before aCommandHandler
will be executed.
-
Method Details
-
getSubject
String getSubject()Specifies the subject of this command, needed to source the necessary events for the command execution.- Returns:
- the subject path
-
getSubjectCondition
Specifies the condition to check for the givengetSubject()
before aCommandHandler
will be executed.- Returns:
- the subject condition to check for
-