Annotation Interface DynamicMessageHandler
@Documented
@Retention(RUNTIME)
@Target({ANNOTATION_TYPE,CONSTRUCTOR,METHOD})
@HasHandlerAttributes
public @interface DynamicMessageHandler
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSpecifies the name of message payload that can be handled by the member method.Class<? extends org.axonframework.messaging.Message>Specifies the type of message that can be handled by the member method.Class<?>Specifies the type of message payload that can be handled by the member method.
-
Element Details
-
messageType
Class<? extends org.axonframework.messaging.Message> messageTypeSpecifies the type of message that can be handled by the member method. Defaults to anyMessage.- Default:
- org.axonframework.messaging.Message.class
-
payloadType
Class<?> payloadTypeSpecifies the type of message payload that can be handled by the member method. The payload of the message should be assignable to this type. Defaults to anyObject.- Default:
- java.lang.Object.class
-
messageName
String messageNameSpecifies the name of message payload that can be handled by the member method.- Default:
- ""
-