Class MessageMappingReflectiveProcessor

java.lang.Object
org.springframework.messaging.handler.annotation.MessageMappingReflectiveProcessor
All Implemented Interfaces:
org.springframework.aot.hint.annotation.ReflectiveProcessor

public class MessageMappingReflectiveProcessor extends Object implements org.springframework.aot.hint.annotation.ReflectiveProcessor
ReflectiveProcessor implementation for types annotated with @MessageMapping, @SubscribeMapping and @MessageExceptionHandler. In addition to registering reflection hints for invoking the annotated method, this implementation handles:
Since:
6.0
Author:
Sebastien Deleuze
  • Constructor Details

    • MessageMappingReflectiveProcessor

      public MessageMappingReflectiveProcessor()
  • Method Details

    • registerReflectionHints

      public void registerReflectionHints(org.springframework.aot.hint.ReflectionHints hints, AnnotatedElement element)
      Specified by:
      registerReflectionHints in interface org.springframework.aot.hint.annotation.ReflectiveProcessor
    • registerTypeHints

      protected void registerTypeHints(org.springframework.aot.hint.ReflectionHints hints, Class<?> type)
    • registerMethodHints

      protected void registerMethodHints(org.springframework.aot.hint.ReflectionHints hints, Method method)
    • registerParameterHints

      protected void registerParameterHints(org.springframework.aot.hint.ReflectionHints hints, Method method)
    • registerMessageExceptionHandlerHints

      protected void registerMessageExceptionHandlerHints(org.springframework.aot.hint.ReflectionHints hints, MessageExceptionHandler annotation)
    • couldBePayload

      protected boolean couldBePayload(org.springframework.core.MethodParameter methodParameter)
    • registerReturnValueHints

      protected void registerReturnValueHints(org.springframework.aot.hint.ReflectionHints hints, Method method)
    • getMessageType

      @Nullable protected Type getMessageType(org.springframework.core.MethodParameter parameter)