getAnnotationAttributes generally supports meta-annotation lookup

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1582 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Juergen Hoeller
2009-07-21 14:44:07 +00:00
parent cf52e525ae
commit a40f454ac8
@@ -97,6 +97,11 @@ public class StandardMethodMetadata implements MethodMetadata {
if (ann.annotationType().getName().equals(annotationType)) { if (ann.annotationType().getName().equals(annotationType)) {
return AnnotationUtils.getAnnotationAttributes(ann, true); return AnnotationUtils.getAnnotationAttributes(ann, true);
} }
for (Annotation metaAnn : ann.annotationType().getAnnotations()) {
if (metaAnn.annotationType().getName().equals(annotationType)) {
return AnnotationUtils.getAnnotationAttributes(metaAnn, true);
}
}
} }
return null; return null;
} }