|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.support.AnnotationMethodResolver
public class AnnotationMethodResolver
MethodResolver implementation that finds a single Method on the given Class that contains the specified annotation type.
Constructor Summary | |
---|---|
AnnotationMethodResolver(Class<? extends Annotation> annotationType)
Create a MethodResolver for the specified Method-level annotation type |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotationMethodResolver(Class<? extends Annotation> annotationType)
Method Detail |
---|
public Method findMethod(Object candidate)
findMethod
in interface MethodResolver
candidate
- the instance whose Class will be checked for the
annotation
null
if the
candidate's Class contains no Methods with the specified annotation
IllegalArgumentException
- 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 annotation
null
if the
Class contains no Methods with the specified annotation
IllegalArgumentException
- if more than one Method has the
specified annotation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |