org.springframework.beans.factory.support

## 类 SimpleAutowireCandidateResolver

- java.lang.Object
- - org.springframework.beans.factory.support.SimpleAutowireCandidateResolver

- 所有已实现的接口:
    AutowireCandidateResolver
  直接已知子类:
    GenericTypeAwareAutowireCandidateResolver

      public class SimpleAutowireCandidateResolver
      extends Object
      implements AutowireCandidateResolver

  `AutowireCandidateResolver` implementation to use when no annotation support is available. This implementation checks the bean definition only.
  从以下版本开始:
    2.5
  作者:
    Mark Fisher, Juergen Hoeller

- - ### 构造器概要

    构造器
    构造器和说明
    `SimpleAutowireCandidateResolver()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `Object` | `getLazyResolutionProxyIfNecessary(DependencyDescriptor descriptor, String beanName)` Build a proxy for lazy resolution of the actual dependency target, if demanded by the injection point.
    `Object` | `getSuggestedValue(DependencyDescriptor descriptor)` Determine whether a default value is suggested for the given dependency.
    `boolean` | `isAutowireCandidate(BeanDefinitionHolder bdHolder, DependencyDescriptor descriptor)` Determine whether the given bean definition qualifies as an autowire candidate for the given dependency.
    `boolean` | `isRequired(DependencyDescriptor descriptor)` Determine whether the given descriptor is effectively required.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### SimpleAutowireCandidateResolver

          public SimpleAutowireCandidateResolver()

  - ### 方法详细资料

    - #### isAutowireCandidate

          public boolean isAutowireCandidate(BeanDefinitionHolder bdHolder,
                                             DependencyDescriptor descriptor)

      从接口复制的说明: `AutowireCandidateResolver`
      Determine whether the given bean definition qualifies as an autowire candidate for the given dependency.

      The default implementation checks `BeanDefinition.isAutowireCandidate()`.

      指定者:
        `isAutowireCandidate` 在接口中 `AutowireCandidateResolver`
      参数:
        `bdHolder` - the bean definition including bean name and aliases
        `descriptor` - the descriptor for the target method parameter or field
      返回:
        whether the bean definition qualifies as autowire candidate
      另请参阅:
        `BeanDefinition.isAutowireCandidate()`

    - #### isRequired

          public boolean isRequired(DependencyDescriptor descriptor)

      从接口复制的说明: `AutowireCandidateResolver`
      Determine whether the given descriptor is effectively required.

      The default implementation checks `DependencyDescriptor.isRequired()`.

      指定者:
        `isRequired` 在接口中 `AutowireCandidateResolver`
      参数:
        `descriptor` - the descriptor for the target method parameter or field
      返回:
        whether the descriptor is marked as required or possibly indicating non-required status some other way (e.g. through a parameter annotation)
      另请参阅:
        `DependencyDescriptor.isRequired()`

    - #### getSuggestedValue

          @Nullable
          public Object getSuggestedValue(DependencyDescriptor descriptor)

      从接口复制的说明: `AutowireCandidateResolver`
      Determine whether a default value is suggested for the given dependency.

      The default implementation simply returns `null`.

      指定者:
        `getSuggestedValue` 在接口中 `AutowireCandidateResolver`
      参数:
        `descriptor` - the descriptor for the target method parameter or field
      返回:
        the value suggested (typically an expression String), or `null` if none found

    - #### getLazyResolutionProxyIfNecessary

          @Nullable
          public Object getLazyResolutionProxyIfNecessary(DependencyDescriptor descriptor,
                                                                     @Nullable
                                                                     String beanName)

      从接口复制的说明: `AutowireCandidateResolver`
      Build a proxy for lazy resolution of the actual dependency target, if demanded by the injection point.

      The default implementation simply returns `null`.

      指定者:
        `getLazyResolutionProxyIfNecessary` 在接口中 `AutowireCandidateResolver`
      参数:
        `descriptor` - the descriptor for the target method parameter or field
        `beanName` - the name of the bean that contains the injection point
      返回:
        the lazy resolution proxy for the actual dependency target, or `null` if straight resolution is to be performed