Top Description Fields Constructors Methods
org.springframework.messaging.handler.annotation

public Class MessageMappingReflectiveProcessor

extends Object
implements ReflectiveProcessor
Class Inheritance
All Implemented Interfaces
org.springframework.aot.hint.annotation.ReflectiveProcessor
Imports
java.lang.reflect.AnnotatedElement, .Method, .Parameter, .Type, java.security.Principal, org.springframework.aot.hint.BindingReflectionHintsRegistrar, .ExecutableMode, .ReflectionHints, org.springframework.aot.hint.annotation.ReflectiveProcessor, org.springframework.core.MethodParameter, org.springframework.lang.Nullable, org.springframework.messaging.Message, .MessageHeaders, org.springframework.messaging.support.MessageHeaderAccessor

ReflectiveProcessor implementation for types annotated with @MessageMapping, @SubscribeMapping and @MessageExceptionHandler. In addition to registering reflection hints for invoking the annotated method, this implementation handles:
Author
Sebastien Deleuze
Since
6.0

Field Summary

Modifier and TypeField and Description
private final BindingReflectionHintsRegistrar

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected boolean
protected Type
protected void
protected void
protected void
public void
registerReflectionHints(ReflectionHints
the reflection hints instance to use
hints
,
AnnotatedElement
the element to process
element
)

Implements org.springframework.aot.hint.annotation.ReflectiveProcessor.registerReflectionHints.

Register ReflectionHints against the specified AnnotatedElement.

protected void
protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bindingRegistrarback to summary
private final BindingReflectionHintsRegistrar bindingRegistrar

Constructor Detail

MessageMappingReflectiveProcessorback to summary
public MessageMappingReflectiveProcessor()

Method Detail

couldBePayloadback to summary
protected boolean couldBePayload(MethodParameter methodParameter)
getMessageTypeback to summary
protected Type getMessageType(MethodParameter parameter)
Annotations
@Nullable
registerMessageExceptionHandlerHintsback to summary
protected void registerMessageExceptionHandlerHints(ReflectionHints hints, MessageExceptionHandler annotation)
registerMethodHintsback to summary
protected void registerMethodHints(ReflectionHints hints, Method method)
registerParameterHintsback to summary
protected void registerParameterHints(ReflectionHints hints, Method method)
registerReflectionHintsback to summary
public void registerReflectionHints(ReflectionHints hints, AnnotatedElement element)

Implements org.springframework.aot.hint.annotation.ReflectiveProcessor.registerReflectionHints.

Doc from org.springframework.aot.hint.annotation.ReflectiveProcessor.registerReflectionHints.

Register ReflectionHints against the specified AnnotatedElement.

Parameters
hints:ReflectionHints

the reflection hints instance to use

element:AnnotatedElement

the element to process

Annotations
@Override
registerReturnValueHintsback to summary
protected void registerReturnValueHints(ReflectionHints hints, Method method)
registerTypeHintsback to summary
protected void registerTypeHints(ReflectionHints hints, Class<?> type)