spring-framework / org.springframework.beans.factory.config / RuntimeBeanReference

RuntimeBeanReference

open class RuntimeBeanReference : BeanReference

Immutable placeholder class used for a property value object when it's a reference to another bean in the factory, to be resolved at runtime.

Author
Rod Johnson

Author
Juergen Hoeller

See Also
BeanDefinition#getPropertyValues()org.springframework.beans.factory.BeanFactory#getBean

Constructors

<init>

RuntimeBeanReference(beanName: String)

Create a new RuntimeBeanReference to the given bean name, without explicitly marking it as reference to a bean in the parent factory.

RuntimeBeanReference(beanName: String, toParent: Boolean)

Create a new RuntimeBeanReference to the given bean name, with the option to mark it as reference to a bean in the parent factory.

Functions

equals

open fun equals(other: Any?): Boolean

getBeanName

open fun getBeanName(): String

getSource

open fun getSource(): Any

hashCode

open fun hashCode(): Int

isToParent

open fun isToParent(): Boolean

Return whether this is an explicit reference to a bean in the parent factory.

setSource

open fun setSource(source: Any): Unit

Set the configuration source Object for this metadata element.

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

toString

open fun toString(): String