Annotation Interface DynamicMessageHandler


@Documented @Retention(RUNTIME) @Target({ANNOTATION_TYPE,CONSTRUCTOR,METHOD}) @HasHandlerAttributes public @interface DynamicMessageHandler
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Specifies 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.
    Specifies the type of message payload that can be handled by the member method.
  • Element Details

    • messageType

      Class<? extends org.axonframework.messaging.Message> messageType
      Specifies the type of message that can be handled by the member method. Defaults to any Message.
      Default:
      org.axonframework.messaging.Message.class
    • payloadType

      Class<?> payloadType
      Specifies 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 any Object.
      Default:
      java.lang.Object.class
    • messageName

      String messageName
      Specifies the name of message payload that can be handled by the member method.
      Default:
      ""