Class MessageMappingReflectiveProcessor
java.lang.Object
org.springframework.messaging.handler.annotation.MessageMappingReflectiveProcessor
- All Implemented Interfaces:
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
(MethodParameter methodParameter) protected Type
getMessageType
(MethodParameter parameter) protected void
registerMessageExceptionHandlerHints
(ReflectionHints hints, MessageExceptionHandler annotation) protected void
registerMethodHints
(ReflectionHints hints, Method method) protected void
registerParameterHints
(ReflectionHints hints, Method method) void
registerReflectionHints
(ReflectionHints hints, AnnotatedElement element) RegisterReflectionHints
against the specifiedAnnotatedElement
.protected void
registerReturnValueHints
(ReflectionHints hints, Method method) protected void
registerTypeHints
(ReflectionHints hints, Class<?> type)
-
Constructor Details
-
MessageMappingReflectiveProcessor
public MessageMappingReflectiveProcessor()
-
-
Method Details
-
registerReflectionHints
Description copied from interface:ReflectiveProcessor
RegisterReflectionHints
against the specifiedAnnotatedElement
.- Specified by:
registerReflectionHints
in interfaceReflectiveProcessor
- Parameters:
hints
- the reflection hints instance to useelement
- the element to process
-
registerTypeHints
-
registerMethodHints
-
registerParameterHints
-
registerMessageExceptionHandlerHints
protected void registerMessageExceptionHandlerHints(ReflectionHints hints, MessageExceptionHandler annotation) -
couldBePayload
-
registerReturnValueHints
-
getMessageType
-