org.springframework.beans.factory

## 接口 NamedBean

- 所有已知实现类:
    NamedBeanHolder

      public interface NamedBean

  Counterpart of `BeanNameAware`. Returns the bean name of an object.

  This interface can be introduced to avoid a brittle dependence on bean name in objects used with Spring IoC and Spring AOP.

  从以下版本开始:
    2.0
  作者:
    Rod Johnson
  另请参阅:
    `BeanNameAware`

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getBeanName()` Return the name of this bean in a Spring bean factory, if known.

- - ### 方法详细资料

    - #### getBeanName

          String getBeanName()

      Return the name of this bean in a Spring bean factory, if known.