程序包 org.springframework.messaging.handler.annotation.support
Support classes for working with annotated message-handling methods.
接口概要 接口 说明 MessageHandlerMethodFactory A factory forInvocableHandlerMethodthat is suitable to process an incomingMessage类概要 类 说明 AbstractNamedValueMethodArgumentResolver Abstract base class for resolving method arguments from a named value.AbstractNamedValueMethodArgumentResolver.NamedValueInfo Represents the information about a named value, including name, whether it's required and a default value.AnnotationExceptionHandlerMethodResolver A sub-class ofAbstractExceptionHandlerMethodResolverthat looks forMessageExceptionHandler-annotated methods in a given class.DefaultMessageHandlerMethodFactory The defaultMessageHandlerMethodFactoryimplementation creating anInvocableHandlerMethodwith the necessaryHandlerMethodArgumentResolverinstances to detect and process most of the use cases defined byMessageMapping.DestinationVariableMethodArgumentResolver Resolves method parameters annotated with@DestinationVariable.HeaderMethodArgumentResolver Resolves method parameters annotated with@Header.HeadersMethodArgumentResolver Resolves the following method parameters: Parameters assignable toMapannotated with@HeadersParameters of typeMessageHeadersParameters assignable toMessageHeaderAccessorMessageMethodArgumentResolver HandlerMethodArgumentResolverforMessagemethod arguments.PayloadArgumentResolver A resolver to extract and convert the payload of a message using aMessageConverter.异常错误概要 异常错误 说明 AbstractMethodArgumentResolutionException 已过时。 as of 4.3.6, in favor of the invocation-associatedMethodArgumentResolutionExceptionMethodArgumentNotValidException Exception to be thrown when a method argument fails validation perhaps as a result of@Validstyle validation, or perhaps because it is required.MethodArgumentTypeMismatchException Exception that indicates that a method argument has not the expected type.