renamed getAnnotations to getMethodAnnotations; added getMethodAnnotation and getParameterAnnotation convenience methods

This commit is contained in:
Juergen Hoeller
2009-10-01 15:20:31 +00:00
parent b152ac34fd
commit 71a045328c
2 changed files with 32 additions and 9 deletions

View File

@@ -157,7 +157,7 @@ public class QualifierAnnotationAutowireCandidateResolver implements AutowireCan
if (methodParam != null) {
Method method = methodParam.getMethod();
if (method == null || void.class.equals(method.getReturnType())) {
match = checkQualifiers(bdHolder, methodParam.getAnnotations());
match = checkQualifiers(bdHolder, methodParam.getMethodAnnotations());
}
}
}
@@ -274,7 +274,7 @@ public class QualifierAnnotationAutowireCandidateResolver implements AutowireCan
if (value == null) {
MethodParameter methodParam = descriptor.getMethodParameter();
if (methodParam != null) {
value = findValue(methodParam.getAnnotations());
value = findValue(methodParam.getMethodAnnotations());
}
}
return value;