getAnnotationAttributes generally supports meta-annotation lookup

This commit is contained in:
Juergen Hoeller 2009-07-21 14:44:07 +00:00
parent dbdd6eca60
commit 3462b43bb1
1 changed files with 5 additions and 0 deletions

View File

@ -97,6 +97,11 @@ public class StandardMethodMetadata implements MethodMetadata {
if (ann.annotationType().getName().equals(annotationType)) {
return AnnotationUtils.getAnnotationAttributes(ann, true);
}
for (Annotation metaAnn : ann.annotationType().getAnnotations()) {
if (metaAnn.annotationType().getName().equals(annotationType)) {
return AnnotationUtils.getAnnotationAttributes(metaAnn, true);
}
}
}
return null;
}