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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleancouldBePayload(MethodParameter methodParameter) protected TypegetMessageType(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- 
MessageMappingReflectiveProcessorpublic MessageMappingReflectiveProcessor()
 
- 
- 
Method Details- 
registerReflectionHintsDescription copied from interface:ReflectiveProcessorRegisterReflectionHintsagainst the specifiedAnnotatedElement.- Specified by:
- registerReflectionHintsin interface- ReflectiveProcessor
- Parameters:
- hints- the reflection hints instance to use
- element- the element to process
 
- 
registerTypeHints
- 
registerMethodHints
- 
registerParameterHints
- 
registerMessageExceptionHandlerHintsprotected void registerMessageExceptionHandlerHints(ReflectionHints hints, MessageExceptionHandler annotation) 
- 
couldBePayload
- 
registerReturnValueHints
- 
getMessageType
 
-