org.springframework.beans.factory.wiring

## 类 BeanWiringInfo

- java.lang.Object
- - org.springframework.beans.factory.wiring.BeanWiringInfo

-     public class BeanWiringInfo
      extends Object

  Holder for bean wiring metadata information about a particular class. Used in conjunction with the `Configurable` annotation and the AspectJ `AnnotationBeanConfigurerAspect`.
  从以下版本开始:
    2.0
  作者:
    Rod Johnson, Juergen Hoeller
  另请参阅:
    `BeanWiringInfoResolver`, `AutowireCapableBeanFactory`, `Configurable`

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static int` | `AUTOWIRE_BY_NAME` Constant that indicates autowiring bean properties by name.
    `static int` | `AUTOWIRE_BY_TYPE` Constant that indicates autowiring bean properties by type.

  - ### 构造器概要

    构造器
    构造器和说明
    `BeanWiringInfo()` Create a default BeanWiringInfo that suggests plain initialization of factory and post-processor callbacks that the bean class may expect.
    `BeanWiringInfo(int autowireMode, boolean dependencyCheck)` Create a new BeanWiringInfo that indicates autowiring.
    `BeanWiringInfo(String beanName)` Create a new BeanWiringInfo that points to the given bean name.
    `BeanWiringInfo(String beanName, boolean isDefaultBeanName)` Create a new BeanWiringInfo that points to the given bean name.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `int` | `getAutowireMode()` Return one of the constants `AUTOWIRE_BY_NAME` / `AUTOWIRE_BY_TYPE`, if autowiring is indicated.
    `String` | `getBeanName()` Return the specific bean name that this BeanWiringInfo points to, if any.
    `boolean` | `getDependencyCheck()` Return whether to perform a dependency check for object references in the bean instance (after autowiring).
    `boolean` | `indicatesAutowiring()` Return whether this BeanWiringInfo indicates autowiring.
    `boolean` | `isDefaultBeanName()` Return whether the specific bean name is a suggested default bean name, not necessarily matching an actual bean definition in the factory.

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

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

- - ### 字段详细资料

    - #### AUTOWIRE_BY_NAME

          public static final int AUTOWIRE_BY_NAME

      Constant that indicates autowiring bean properties by name.
      另请参阅:
        `BeanWiringInfo(int, boolean)`, `AutowireCapableBeanFactory.AUTOWIRE_BY_NAME`, 常量字段值

    - #### AUTOWIRE_BY_TYPE

          public static final int AUTOWIRE_BY_TYPE

      Constant that indicates autowiring bean properties by type.
      另请参阅:
        `BeanWiringInfo(int, boolean)`, `AutowireCapableBeanFactory.AUTOWIRE_BY_TYPE`, 常量字段值

  - ### 构造器详细资料

    - #### BeanWiringInfo

          public BeanWiringInfo()

      Create a default BeanWiringInfo that suggests plain initialization of factory and post-processor callbacks that the bean class may expect.

    - #### BeanWiringInfo

          public BeanWiringInfo(String beanName)

      Create a new BeanWiringInfo that points to the given bean name.
      参数:
        `beanName` - the name of the bean definition to take the property values from
      抛出:
        `IllegalArgumentException` - if the supplied beanName is `null`, is empty, or consists wholly of whitespace

    - #### BeanWiringInfo

          public BeanWiringInfo(String beanName,
                                boolean isDefaultBeanName)

      Create a new BeanWiringInfo that points to the given bean name.
      参数:
        `beanName` - the name of the bean definition to take the property values from
        `isDefaultBeanName` - whether the given bean name is a suggested default bean name, not necessarily matching an actual bean definition
      抛出:
        `IllegalArgumentException` - if the supplied beanName is `null`, is empty, or consists wholly of whitespace

    - #### BeanWiringInfo

          public BeanWiringInfo(int autowireMode,
                                boolean dependencyCheck)

      Create a new BeanWiringInfo that indicates autowiring.
      参数:
        `autowireMode` - one of the constants `AUTOWIRE_BY_NAME` / `AUTOWIRE_BY_TYPE`
        `dependencyCheck` - whether to perform a dependency check for object references in the bean instance (after autowiring)
      抛出:
        `IllegalArgumentException` - if the supplied `autowireMode` is not one of the allowed values
      另请参阅:
        `AUTOWIRE_BY_NAME`, `AUTOWIRE_BY_TYPE`

  - ### 方法详细资料

    - #### indicatesAutowiring

          public boolean indicatesAutowiring()

      Return whether this BeanWiringInfo indicates autowiring.

    - #### getBeanName

          @Nullable
          public String getBeanName()

      Return the specific bean name that this BeanWiringInfo points to, if any.

    - #### isDefaultBeanName

          public boolean isDefaultBeanName()

      Return whether the specific bean name is a suggested default bean name, not necessarily matching an actual bean definition in the factory.

    - #### getAutowireMode

          public int getAutowireMode()

      Return one of the constants `AUTOWIRE_BY_NAME` / `AUTOWIRE_BY_TYPE`, if autowiring is indicated.

    - #### getDependencyCheck

          public boolean getDependencyCheck()

      Return whether to perform a dependency check for object references in the bean instance (after autowiring).