|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.beans.factory.support.AutowireUtils
public abstract class AutowireUtils
Utility class that contains various methods useful for the implementation of autowire-capable bean factories.
AbstractAutowireCapableBeanFactory
Constructor Summary | |
---|---|
AutowireUtils()
|
Method Summary | |
---|---|
static int |
getTypeDifferenceWeight(Class[] argTypes,
Object[] args)
Determine a weight that represents the class hierarchy difference between types and arguments. |
static boolean |
isExcludedFromDependencyCheck(PropertyDescriptor pd)
Determine whether the given bean property is excluded from dependency checks. |
static boolean |
isSetterDefinedInInterface(PropertyDescriptor pd,
Set interfaces)
Return whether the setter method of the given bean property is defined in any of the given interfaces. |
static void |
sortConstructors(Constructor[] constructors)
Sort the given constructors, preferring public constructors and "greedy" ones with a maximum of arguments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AutowireUtils()
Method Detail |
---|
public static void sortConstructors(Constructor[] constructors)
constructors
- the constructor array to sortpublic static int getTypeDifferenceWeight(Class[] argTypes, Object[] args)
argTypes
- the argument types to matchargs
- the arguments to match
public static boolean isExcludedFromDependencyCheck(PropertyDescriptor pd)
This implementation excludes properties defined by CGLIB.
pd
- the PropertyDescriptor of the bean property
public static boolean isSetterDefinedInInterface(PropertyDescriptor pd, Set interfaces)
pd
- the PropertyDescriptor of the bean propertyinterfaces
- the Set of interfaces (Class objects)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |