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
Message
parameters- Exception classes specified via
@MessageExceptionHandler
- Since:
- 6.0
- Author:
- Sebastien Deleuze
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
couldBePayload
(org.springframework.core.MethodParameter methodParameter) protected Type
getMessageType
(org.springframework.core.MethodParameter parameter) protected void
registerMessageExceptionHandlerHints
(org.springframework.aot.hint.ReflectionHints hints, MessageExceptionHandler annotation) protected void
registerMethodHints
(org.springframework.aot.hint.ReflectionHints hints, Method method) protected void
registerParameterHints
(org.springframework.aot.hint.ReflectionHints hints, Method method) void
registerReflectionHints
(org.springframework.aot.hint.ReflectionHints hints, AnnotatedElement element) protected void
registerReturnValueHints
(org.springframework.aot.hint.ReflectionHints hints, Method method) protected void
registerTypeHints
(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:
registerReflectionHints
in 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
-