|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.util.AnnotationDetectionFieldCallback
public class AnnotationDetectionFieldCallback
A ReflectionUtils.FieldCallback that will inspect each field for a given annotation. Thie fields type can then be accessed
afterwards.
| Constructor Summary | |
|---|---|
AnnotationDetectionFieldCallback(Class<? extends Annotation> annotationType)
Creates a new AnnotationDetectionFieldCallback scanning for an annotation of the given type. |
|
| Method Summary | ||
|---|---|---|
void |
doWith(Field field)
|
|
Class<?> |
getType()
Returns the type of the field. |
|
|
getValue(Object source)
Retrieves the value of the field by reflection. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationDetectionFieldCallback(Class<? extends Annotation> annotationType)
AnnotationDetectionFieldCallback scanning for an annotation of the given type.
annotationType - must not be null.| Method Detail |
|---|
public void doWith(Field field)
throws IllegalArgumentException,
IllegalAccessException
doWith in interface ReflectionUtils.FieldCallbackIllegalArgumentException
IllegalAccessExceptionpublic Class<?> getType()
public <T> T getValue(Object source)
source - must not be null.
|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||