クラス MessageMappingReflectiveProcessor
java.lang.ObjectSE
org.springframework.messaging.handler.annotation.MessageMappingReflectiveProcessor
- 実装されているすべてのインターフェース:
ReflectiveProcessor
@MessageMapping、@SubscribeMapping、@MessageExceptionHandler でアノテーションが付けられた型の ReflectiveProcessor 実装。アノテーション付きメソッドを呼び出すためのリフレクションヒントを登録することに加えて、この実装は以下を処理します。- 戻り型
- 潜在的なペイロードとして特定されたパラメーター
Messageパラメーター@MessageExceptionHandlerで指定された例外クラス
- 導入:
- 6.0
- 作成者:
- Sebastien Deleuze
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected booleancouldBePayload(MethodParameter methodParameter) protected TypeSEgetMessageType(MethodParameter parameter) protected voidregisterMessageExceptionHandlerHints(ReflectionHints hints, MessageExceptionHandler annotation) protected voidregisterMethodHints(ReflectionHints hints, MethodSE method) protected voidregisterParameterHints(ReflectionHints hints, MethodSE method) voidregisterReflectionHints(ReflectionHints hints, AnnotatedElementSE element) 指定されたAnnotatedElementSE に対してReflectionHintsを登録します。protected voidregisterReturnValueHints(ReflectionHints hints, MethodSE method) protected voidregisterTypeHints(ReflectionHints hints, ClassSE<?> type)
コンストラクターの詳細
MessageMappingReflectiveProcessor
public MessageMappingReflectiveProcessor()
メソッドの詳細
registerReflectionHints
インターフェースからコピーされた説明:ReflectiveProcessor指定されたAnnotatedElementSE に対してReflectionHintsを登録します。- 次で指定:
- インターフェース
ReflectiveProcessorのregisterReflectionHints - パラメーター:
hints- 使用するリフレクションヒントインスタンスelement- 処理する要素
registerTypeHints
registerMethodHints
registerParameterHints
registerMessageExceptionHandlerHints
protected void registerMessageExceptionHandlerHints(ReflectionHints hints, MessageExceptionHandler annotation) couldBePayload
registerReturnValueHints
getMessageType