@Value values may use ${...} placeholders (driven by PropertyPlaceholderConfigurer); @Autowired uses field/parameter name as fallback qualifier value (SPR-5152)

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@899 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Juergen Hoeller
2009-03-31 20:27:42 +00:00
parent f7a8f77dcf
commit c25fe064ce
10 changed files with 184 additions and 30 deletions
@@ -148,6 +148,13 @@ public class MethodParameter {
return this.constructor;
}
/**
* Return the class that declares the underlying Method or Constructor.
*/
public Class getDeclaringClass() {
return (this.method != null ? this.method.getDeclaringClass() : this.constructor.getDeclaringClass());
}
/**
* Return the index of the method/constructor parameter.
* @return the parameter index (never negative)