org.springframework.beans.factory.config

Class NamedBeanHolder<T>

  • java.lang.Object
    • org.springframework.beans.factory.config.NamedBeanHolder<T>
    • Constructor Summary

      Constructors 
      Constructor and Description
      NamedBeanHolder(java.lang.String beanName, T beanInstance)
      Create a new holder for the given bean name plus instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      T getBeanInstance()
      Return the corresponding bean instance.
      java.lang.String getBeanName()
      Return the name of the bean.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NamedBeanHolder

        public NamedBeanHolder(java.lang.String beanName,
                               T beanInstance)
        Create a new holder for the given bean name plus instance.
        Parameters:
        beanName - the name of the bean
        beanInstance - the corresponding bean instance
    • Method Detail

      • getBeanName

        public java.lang.String getBeanName()
        Return the name of the bean.
        Specified by:
        getBeanName in interface NamedBean
      • getBeanInstance

        public T getBeanInstance()
        Return the corresponding bean instance.