Class AnnotationExceptionHandlerMethodResolver
- java.lang.Object
- org.springframework.messaging.handler.invocation.AbstractExceptionHandlerMethodResolver
- org.springframework.messaging.handler.annotation.support.AnnotationExceptionHandlerMethodResolver
public class AnnotationExceptionHandlerMethodResolver extends AbstractExceptionHandlerMethodResolver
A sub-class ofAbstractExceptionHandlerMethodResolver
that looks forMessageExceptionHandler
-annotated methods in a given class. The actual exception types handled are extracted either from the annotation, if present, or from the method signature as a fallback option.- Since:
- 4.0
- Author:
- Rossen Stoyanchev
Field Summary
Fields Modifier and Type Field Description static ReflectionUtils.MethodFilter
EXCEPTION_HANDLER_METHOD_FILTER
Deprecated.as of Spring 4.2.3, since it isn't used anymore
Constructor Summary
Constructors Constructor Description AnnotationExceptionHandlerMethodResolver(Class<?> handlerType)
A constructor that findsMessageExceptionHandler
methods in the given type.
Method Summary
Methods inherited from class org.springframework.messaging.handler.invocation.AbstractExceptionHandlerMethodResolver
getExceptionsFromMethodSignature, hasExceptionMappings, resolveMethod, resolveMethodByExceptionType
Field Detail
EXCEPTION_HANDLER_METHOD_FILTER
@Deprecated public static final ReflectionUtils.MethodFilter EXCEPTION_HANDLER_METHOD_FILTER
Deprecated.as of Spring 4.2.3, since it isn't used anymoreA filter for selecting annotated exception handling methods.
Constructor Detail
AnnotationExceptionHandlerMethodResolver
public AnnotationExceptionHandlerMethodResolver(Class<?> handlerType)
A constructor that findsMessageExceptionHandler
methods in the given type.- Parameters:
handlerType
- the type to introspect