| Modifier and Type | Method and Description |
|---|---|
| public default AutowireCandidateResolver | cloneIfNecessary()
Return a clone of this resolver instance if necessary, retaining its local configuration and allowing for the cloned instance to get associated with a new bean factory, or this original instance if there is no such state. |
| public default Class | Returns: the lazy resolution proxy class for the dependency target, if anythe descriptor for the target method parameter or field descriptor, String the name of the bean that contains the injection point beanName)Determine the proxy class for lazy resolution of the dependency target, if demanded by the injection point. |
| public default Object | Returns: the lazy resolution proxy for the actual dependency target, ornull if straight resolution is to be performedthe descriptor for the target method parameter or field descriptor, String the name of the bean that contains the injection point beanName)Build a proxy for lazy resolution of the actual dependency target, if demanded by the injection point. |
| public default Object | Returns: the value suggested (typically an expression String), ornull if none foundthe descriptor for the target method parameter or field descriptor)Determine whether a default value is suggested for the given dependency. |
| public default boolean | Returns: whether the descriptor declares a qualifier, narrowing the candidate status beyond the type matchthe descriptor for the target method parameter or field descriptor)Determine whether the given descriptor declares a qualifier beyond the type (typically - but not necessarily - a specific kind of annotation). |
| public default boolean | Returns: whether the bean definition qualifies as autowire candidatethe bean definition including bean name and aliases bdHolder, DependencyDescriptor the descriptor for the target method parameter or field descriptor)Determine whether the given bean definition qualifies as an autowire candidate for the given dependency. |
| public default boolean | Returns: whether the descriptor is marked as required or possibly indicating non-required status some other way (e.g. through a parameter annotation)the descriptor for the target method parameter or field descriptor)Determine whether the given descriptor is effectively required. |
| cloneIfNecessary | back to summary |
|---|---|
| public default AutowireCandidateResolver cloneIfNecessary() Return a clone of this resolver instance if necessary, retaining its local configuration and allowing for the cloned instance to get associated with a new bean factory, or this original instance if there is no such state. The default implementation creates a separate instance via the default
class constructor, assuming no specific configuration state to copy.
Subclasses may override this with custom configuration state handling
or with standard | |
| getLazyResolutionProxyClass | back to summary |
|---|---|
| public default Class Determine the proxy class for lazy resolution of the dependency target, if demanded by the injection point. The default implementation simply returns
| |
| getLazyResolutionProxyIfNecessary | back to summary |
|---|---|
| public default Object getLazyResolutionProxyIfNecessary(DependencyDescriptor descriptor, String beanName) Build a proxy for lazy resolution of the actual dependency target, if demanded by the injection point. The default implementation simply returns
| |
| getSuggestedValue | back to summary |
|---|---|
| public default Object getSuggestedValue(DependencyDescriptor descriptor) Determine whether a default value is suggested for the given dependency. The default implementation simply returns
| |
| hasQualifier | back to summary |
|---|---|
| public default boolean hasQualifier(DependencyDescriptor descriptor) Determine whether the given descriptor declares a qualifier beyond the type (typically - but not necessarily - a specific kind of annotation). The default implementation returns
| |
| isAutowireCandidate | back to summary |
|---|---|
| public default boolean isAutowireCandidate(BeanDefinitionHolder bdHolder, DependencyDescriptor descriptor) Determine whether the given bean definition qualifies as an autowire candidate for the given dependency. The default implementation checks
| |
| isRequired | back to summary |
|---|---|
| public default boolean isRequired(DependencyDescriptor descriptor) Determine whether the given descriptor is effectively required. The default implementation checks
| |