mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-05-03 04:19:47 +01:00
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:
+5
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user