Browse Source

getAnnotationAttributes generally supports meta-annotation lookup

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1582 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Juergen Hoeller 17 years ago
parent
commit
a40f454ac8
  1. 5
      org.springframework.core/src/main/java/org/springframework/core/type/StandardMethodMetadata.java

5
org.springframework.core/src/main/java/org/springframework/core/type/StandardMethodMetadata.java

@ -97,6 +97,11 @@ public class StandardMethodMetadata implements MethodMetadata { @@ -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;
}

Loading…
Cancel
Save