接口 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
    • 方法详细资料

      • getBeanName

        String getBeanName()
        Return the name of this bean in a Spring bean factory, if known.