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)
public Method findMethod(Object candidate)
findMethod in interface MethodResolvercandidate - 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 MethodResolverclazz - 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 © 2014 Pivotal. All rights reserved.