Class DynamicMessageHandlingMember<T>

java.lang.Object
ai.stapi.axonsystem.dynamic.messagehandler.DynamicMessageHandlingMember<T>
All Implemented Interfaces:
org.axonframework.messaging.annotation.MessageHandlingMember<T>

public class DynamicMessageHandlingMember<T> extends Object implements org.axonframework.messaging.annotation.MessageHandlingMember<T>
  • Constructor Details

    • DynamicMessageHandlingMember

      public DynamicMessageHandlingMember(Executable executable, Class<? extends org.axonframework.messaging.Message<?>> messageType, Class<?> explicitPayloadType, org.axonframework.messaging.annotation.ParameterResolverFactory parameterResolverFactory, String messageName)
  • Method Details

    • payloadType

      public Class<?> payloadType()
      Specified by:
      payloadType in interface org.axonframework.messaging.annotation.MessageHandlingMember<T>
    • canHandle

      public boolean canHandle(@NotNull @NotNull org.axonframework.messaging.Message<?> message)
      Specified by:
      canHandle in interface org.axonframework.messaging.annotation.MessageHandlingMember<T>
    • canHandleMessageType

      public boolean canHandleMessageType(@NotNull @NotNull Class<? extends org.axonframework.messaging.Message> messageType)
      Specified by:
      canHandleMessageType in interface org.axonframework.messaging.annotation.MessageHandlingMember<T>
    • handle

      public Object handle(@NotNull @NotNull org.axonframework.messaging.Message<?> message, @Nullable T target) throws Exception
      Specified by:
      handle in interface org.axonframework.messaging.annotation.MessageHandlingMember<T>
      Throws:
      Exception
    • unwrap

      public <HT> Optional<HT> unwrap(Class<HT> handlerType)
      Specified by:
      unwrap in interface org.axonframework.messaging.annotation.MessageHandlingMember<T>
    • hasAnnotation

      @Deprecated public boolean hasAnnotation(Class<? extends Annotation> annotationType)
      Deprecated.
      Specified by:
      hasAnnotation in interface org.axonframework.messaging.annotation.MessageHandlingMember<T>
    • annotationAttributes

      @Deprecated public Optional<Map<String,Object>> annotationAttributes(Class<? extends Annotation> annotationType)
      Deprecated.
      Specified by:
      annotationAttributes in interface org.axonframework.messaging.annotation.MessageHandlingMember<T>
    • priority

      public int priority()
      Specified by:
      priority in interface org.axonframework.messaging.annotation.MessageHandlingMember<T>
    • canHandleType

      public boolean canHandleType(@NotNull @NotNull Class<?> payloadType)
      Specified by:
      canHandleType in interface org.axonframework.messaging.annotation.MessageHandlingMember<T>
    • declaringClass

      public Class<?> declaringClass()
      Specified by:
      declaringClass in interface org.axonframework.messaging.annotation.MessageHandlingMember<T>
    • signature

      public String signature()
      Specified by:
      signature in interface org.axonframework.messaging.annotation.MessageHandlingMember<T>
    • attribute

      public <R> Optional<R> attribute(String attributeKey)
      Specified by:
      attribute in interface org.axonframework.messaging.annotation.MessageHandlingMember<T>