AbstractAutowireCapableBeanFactory
| Modifier and Type | Class and Description |
|---|---|
| private static class | AutowireUtils.
Reflective |
| Modifier and Type | Field and Description |
|---|---|
| public static final Comparator |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: whether the bean property is excludedthe PropertyDescriptor of the bean property pd)Determine whether the given bean property is excluded from dependency checks. |
| public static boolean | Returns: whether the setter method is defined by an interfacethe PropertyDescriptor of the bean property pd, Set<Class<?>> the Set of interfaces (Class objects) interfaces)Return whether the setter method of the given bean property is defined in any of the given interfaces. |
| public static Object | Returns: the resolved valuethe value to resolve autowiringValue, Class<?> the type to assign the result to requiredType)Resolve the given autowiring value against the given required type,
e.g. an |
| public static Class | Returns: the resolved target return type or the standard method return typethe method to introspect (never method, Object[] null)the arguments that will be supplied to the method when it is
invoked (never args, ClassLoader null)the ClassLoader to resolve class names against,
if necessary (never classLoader)null)Determine the target type for the generic return type of the given generic factory method, where formal type variables are declared on the given method itself. |
| public static void | sortConstructors(Constructor<?>[]
the constructor array to sort constructors)Sort the given constructors, preferring public constructors and "greedy" ones with a maximum number of arguments. |
| public static void | sortFactoryMethods(Method[]
the factory method array to sort factoryMethods)Sort the given factory methods, preferring public methods and "greedy" ones with a maximum of arguments. |
| EXECUTABLE_COMPARATOR | back to summary |
|---|---|
| public static final Comparator<Executable> EXECUTABLE_COMPARATOR | |
| AutowireUtils | back to summary |
|---|---|
| pack-priv AutowireUtils() | |
| isExcludedFromDependencyCheck | back to summary |
|---|---|
| public static boolean isExcludedFromDependencyCheck(PropertyDescriptor pd) Determine whether the given bean property is excluded from dependency checks. This implementation excludes properties defined by CGLIB.
| |
| isSetterDefinedInInterface | back to summary |
|---|---|
| public static boolean isSetterDefinedInInterface(PropertyDescriptor pd, Set<Class<?>> interfaces) Return whether the setter method of the given bean property is defined in any of the given interfaces.
| |
| resolveAutowiringValue | back to summary |
|---|---|
| public static Object resolveAutowiringValue(Object autowiringValue, Class<?> requiredType) Resolve the given autowiring value against the given required type,
e.g. an | |
| resolveReturnTypeForFactoryMethod | back to summary |
|---|---|
| public static Class Determine the target type for the generic return type of the given generic factory method, where formal type variables are declared on the given method itself. For example, given a factory method with the following signature, if
Possible Return Values
| |
| sortConstructors | back to summary |
|---|---|
| public static void sortConstructors(Constructor<?>[] constructors) Sort the given constructors, preferring public constructors and "greedy" ones with a maximum number of arguments. The result will contain public constructors first, with decreasing number of arguments, then non-public constructors, again with decreasing number of arguments.
| |
| sortFactoryMethods | back to summary |
|---|---|
| public static void sortFactoryMethods(Method[] factoryMethods) Sort the given factory methods, preferring public methods and "greedy" ones with a maximum of arguments. The result will contain public methods first, with decreasing number of arguments, then non-public methods, again with decreasing number of arguments.
| |
InvocationHandler for lazy access to the current target object.
| Modifier and Type | Field and Description |
|---|---|
| private final ObjectFactory |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Object | invoke(Object
the proxy instance that the method was invoked on proxy, Method the method, Object[] Method instance corresponding to
the interface method invoked on the proxy instance. The declaring
class of the Method object will be the interface that
the method was declared in, which may be a superinterface of the
proxy interface that the proxy class inherits the method through.an array of objects containing the values of the
arguments passed in the method invocation on the proxy instance,
or args)null if interface method takes no arguments.
Arguments of primitive types are wrapped in instances of the
appropriate primitive wrapper class, such as
java.lang.Integer or java.lang.Boolean.Implements java. Processes a method invocation on a proxy instance and returns the result. |
| objectFactory | back to summary |
|---|---|
| private final ObjectFactory<?> objectFactory | |
| ObjectFactoryDelegatingInvocationHandler | back to summary |
|---|---|
| pack-priv ObjectFactoryDelegatingInvocationHandler(ObjectFactory<?> objectFactory) | |
| invoke | back to summary |
|---|---|
| public Object invoke(Object proxy, Method method, Object[] args) throws Throwable Implements java. Doc from java. Processes a method invocation on a proxy instance and returns the result. This method will be invoked on an invocation handler when a method is invoked on a proxy instance that it is associated with.
| |