public class AnnotationDetectionFieldCallback extends Object implements ReflectionUtils.FieldCallback
ReflectionUtils.FieldCallback
that will inspect each field for a given annotation. Thie fields type can then be accessed
afterwards.Constructor and Description |
---|
AnnotationDetectionFieldCallback(Class<? extends Annotation> annotationType)
Creates a new
AnnotationDetectionFieldCallback scanning for an annotation of the given type. |
public AnnotationDetectionFieldCallback(Class<? extends Annotation> annotationType)
AnnotationDetectionFieldCallback
scanning for an annotation of the given type.annotationType
- must not be null.public void doWith(Field field) throws IllegalArgumentException, IllegalAccessException
doWith
in interface ReflectionUtils.FieldCallback
IllegalArgumentException
IllegalAccessException
public Class<?> getType()
public <T> T getValue(Object source)
source
- must not be null.Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.