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
Messageparameters- Exception classes specified via
@MessageExceptionHandler
- Since:
- 6.0
- Author:
- Sebastien Deleuze
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancouldBePayload(MethodParameter methodParameter) getMessageType(MethodParameter parameter) protected voidregisterMessageExceptionHandlerHints(ReflectionHints hints, MessageExceptionHandler annotation) protected voidregisterMethodHints(ReflectionHints hints, Method method) protected voidregisterParameterHints(ReflectionHints hints, Method method) voidregisterReflectionHints(ReflectionHints hints, AnnotatedElement element) RegisterReflectionHintsagainst the specifiedAnnotatedElement.protected voidregisterReturnValueHints(ReflectionHints hints, Method method) protected voidregisterTypeHints(ReflectionHints hints, Class<?> type)
-
Constructor Details
-
MessageMappingReflectiveProcessor
public MessageMappingReflectiveProcessor()
-
-
Method Details
-
registerReflectionHints
Description copied from interface:ReflectiveProcessorRegisterReflectionHintsagainst the specifiedAnnotatedElement.- Specified by:
registerReflectionHintsin 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
-