getAnnotationAttributes generally supports meta-annotation lookup
This commit is contained in:
parent
dbdd6eca60
commit
3462b43bb1
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue