public class AnnotationMethodResolver extends Object implements MethodResolver
Constructor and Description |
---|
AnnotationMethodResolver(Class<? extends Annotation> annotationType)
Create a MethodResolver for the specified Method-level annotation type
|
Modifier and Type | Method and Description |
---|---|
Method |
findMethod(Class<?> clazz)
Find a single Method on the given Class that contains the
annotation type for which this resolver is searching.
|
Method |
findMethod(Object candidate)
Find a single Method on the Class of the given candidate object
that contains the annotation type for which this resolver is searching.
|
public AnnotationMethodResolver(Class<? extends Annotation> annotationType)
annotationType
- the type of the annotationpublic Method findMethod(Object candidate)
findMethod
in interface MethodResolver
candidate
- the instance whose Class will be checked for the
annotationnull
if the
candidate's Class contains no Methods with the specified annotationIllegalArgumentException
- if more than one Method has the
specified annotationpublic Method findMethod(Class<?> clazz)
findMethod
in interface MethodResolver
clazz
- the Class instance to check for the annotationnull
if the
Class contains no Methods with the specified annotationIllegalArgumentException
- if more than one Method has the
specified annotationCopyright © 2018 SpringSource. All rights reserved.