|
Spring Data Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.util.AnnotationDetectionMethodCallback<A>
public class AnnotationDetectionMethodCallback<A extends Annotation>
ReflectionUtils.MethodCallback to find annotations of a given type.
| Constructor Summary | |
|---|---|
AnnotationDetectionMethodCallback(Class<A> annotationType)
Creates a new AnnotationDetectionMethodCallback for the given annotation type. |
|
AnnotationDetectionMethodCallback(Class<A> annotationType,
boolean enforceUniqueness)
Creates a new AnnotationDetectionMethodCallback for the given annotation type. |
|
| Method Summary | |
|---|---|
void |
doWith(Method method)
|
A |
getAnnotation()
|
Method |
getMethod()
|
boolean |
hasFoundAnnotation()
Returns whether an annotation was found. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationDetectionMethodCallback(Class<A> annotationType)
AnnotationDetectionMethodCallback for the given annotation type.
annotationType - must not be null.
public AnnotationDetectionMethodCallback(Class<A> annotationType,
boolean enforceUniqueness)
AnnotationDetectionMethodCallback for the given annotation type.
annotationType - must not be null.enforceUniqueness - whether to fail if multiple methods with the annotation are found.| Method Detail |
|---|
public Method getMethod()
public A getAnnotation()
public boolean hasFoundAnnotation()
public void doWith(Method method)
throws IllegalArgumentException,
IllegalAccessException
doWith in interface ReflectionUtils.MethodCallbackIllegalArgumentException
IllegalAccessException
|
Spring Data Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||