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

public Class AnnotationExceptionHandlerMethodResolver

extends AbstractExceptionHandlerMethodResolver
Class Inheritance
Imports
java.lang.reflect.Method, java.util.ArrayList, .Arrays, .HashMap, .List, .Map, org.springframework.core.MethodIntrospector, org.springframework.core.annotation.AnnotatedElementUtils, org.springframework.messaging.handler.annotation.MessageExceptionHandler, org.springframework.messaging.handler.invocation.AbstractExceptionHandlerMethodResolver

A subclass of AbstractExceptionHandlerMethodResolver that looks for MessageExceptionHandler-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.
Authors
Rossen Stoyanchev, Juergen Hoeller
Since
4.0

Constructor Summary

AccessConstructor and Description
public
AnnotationExceptionHandlerMethodResolver(Class<?>
the type to introspect
handlerType
)

A constructor that finds MessageExceptionHandler methods in the given type.

Method Summary

Modifier and TypeMethod and Description
private static Map<Class<? extends Throwable>, Method>
initExceptionMappings(Class<?> handlerType)

Inherited from org.springframework.messaging.handler.invocation.AbstractExceptionHandlerMethodResolver:
getExceptionsFromMethodSignaturehasExceptionMappingsresolveMethodresolveMethodByExceptionType

Constructor Detail

AnnotationExceptionHandlerMethodResolverback to summary
public AnnotationExceptionHandlerMethodResolver(Class<?> handlerType)

A constructor that finds MessageExceptionHandler methods in the given type.

Parameters
handlerType:Class<?>

the type to introspect

Method Detail

initExceptionMappingsback to summary
private static Map<Class<? extends Throwable>, Method> initExceptionMappings(Class<?> handlerType)