org.springframework.beans.factory.config

## 类 NamedBeanHolder<T>

- java.lang.Object
- - org.springframework.beans.factory.config.NamedBeanHolder<T>

- 所有已实现的接口:
    NamedBean

      public class NamedBeanHolder<T>
      extends Object
      implements NamedBean

  A simple holder for a given bean name plus bean instance.
  从以下版本开始:
    4.3.3
  作者:
    Juergen Hoeller
  另请参阅:
    `AutowireCapableBeanFactory.resolveNamedBean(Class)`

- - ### 构造器概要

    构造器
    构造器和说明
    `NamedBeanHolder(String beanName, T beanInstance)` Create a new holder for the given bean name plus instance.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `T` | `getBeanInstance()` Return the corresponding bean instance.
    `String` | `getBeanName()` Return the name of the bean.

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

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

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

    - #### NamedBeanHolder

          public NamedBeanHolder(String beanName,
                                 T beanInstance)

      Create a new holder for the given bean name plus instance.
      参数:
        `beanName` - the name of the bean
        `beanInstance` - the corresponding bean instance

  - ### 方法详细资料

    - #### getBeanName

          public String getBeanName()

      Return the name of the bean.
      指定者:
        `getBeanName` 在接口中 `NamedBean`

    - #### getBeanInstance

          public T getBeanInstance()

      Return the corresponding bean instance.