@Value values may use ${...} placeholders (driven by PropertyPlaceholderConfigurer); @Autowired uses field/parameter name as fallback qualifier value (SPR-5152)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user