org.springframework.beans.factory.config

Class RuntimeBeanNameReference

  • java.lang.Object
    • org.springframework.beans.factory.config.RuntimeBeanNameReference
    • Constructor Summary

      Constructors 
      Constructor and Description
      RuntimeBeanNameReference(java.lang.String beanName)
      Create a new RuntimeBeanNameReference to the given bean name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object other) 
      java.lang.String getBeanName()
      Return the target bean name that this reference points to (never null).
      java.lang.Object getSource()
      Return the configuration source Object for this metadata element (may be null).
      int hashCode() 
      void setSource(java.lang.Object source)
      Set the configuration source Object for this metadata element.
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RuntimeBeanNameReference

        public RuntimeBeanNameReference(java.lang.String beanName)
        Create a new RuntimeBeanNameReference to the given bean name.
        Parameters:
        beanName - name of the target bean
    • Method Detail

      • getBeanName

        public java.lang.String getBeanName()
        Description copied from interface: BeanReference
        Return the target bean name that this reference points to (never null).
        Specified by:
        getBeanName in interface BeanReference
      • setSource

        public void setSource(@Nullable
                              java.lang.Object source)
        Set the configuration source Object for this metadata element.

        The exact type of the object will depend on the configuration mechanism used.

      • equals

        public boolean equals(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object