payloadType
on the @CommandHandler
meta-annotation, this becomes the value used for all Command Handlers annotated with JsonCommandHandler
. These command handlers may (and should) still provide a parameter for the payload, but Axon will complain if it isn't a subclass of JsonNode
.commandName
attribute on the JsonCommandHandler
annotation does not have a default value, and will therefore force developers to specify the name of the command. Note that to override values the attribute name must identical to the name on the @CommandHandler
meta-annotation.routingKey
property is defined exactly as in the @CommandHandler
annotation's specification to still allow developers to choose to provide a Routing Key when using the JsonCommandHandler
.AnnotationUtils#findAnnotationAttributes(AnnotatedElement, String)
method, or the annotationAttributes
on the MessageHandlingMember
. Using Java's annotation API will not take meta-annotations into consideration.