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:
- Return types
- Parameters identified as potential payloads
Messageparameters- Exception classes specified via
@MessageExceptionHandler
- Since:
- 6.0
- Author:
- Sebastien Deleuze
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancouldBePayload(org.springframework.core.MethodParameter methodParameter) protected TypegetMessageType(org.springframework.core.MethodParameter parameter) protected voidregisterMessageExceptionHandlerHints(org.springframework.aot.hint.ReflectionHints hints, MessageExceptionHandler annotation) protected voidregisterMethodHints(org.springframework.aot.hint.ReflectionHints hints, Method method) protected voidregisterParameterHints(org.springframework.aot.hint.ReflectionHints hints, Method method) voidregisterReflectionHints(org.springframework.aot.hint.ReflectionHints hints, AnnotatedElement element) protected voidregisterReturnValueHints(org.springframework.aot.hint.ReflectionHints hints, Method method) protected voidregisterTypeHints(org.springframework.aot.hint.ReflectionHints hints, Class<?> type)
-
Constructor Details
-
MessageMappingReflectiveProcessor
public MessageMappingReflectiveProcessor()
-
-
Method Details
-
registerReflectionHints
public void registerReflectionHints(org.springframework.aot.hint.ReflectionHints hints, AnnotatedElement element) - Specified by:
registerReflectionHintsin interfaceorg.springframework.aot.hint.annotation.ReflectiveProcessor
-
registerTypeHints
-
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
-