public static Field getFieldAnnotatedWith ( Object object , Class < ? extends Annotation > annotationType ) { return findSingleFieldUsingStrategy ( new FieldAnnotationMatcherStrategy ( annotationType ) , object , true , getType ( object ) ) ; }
Get field annotated with a particular annotation . This method traverses the class hierarchy when checking for the annotation .