public class

RuntimeBeanReference

extends Object
implements BeanReference
java.lang.Object
   ↳ org.springframework.beans.factory.config.RuntimeBeanReference

Class Overview

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.

Summary

Public Constructors
RuntimeBeanReference(String beanName)
Create a new RuntimeBeanReference to the given bean name, without explicitly marking it as reference to a bean in the parent factory.
RuntimeBeanReference(String beanName, boolean toParent)
Create a new RuntimeBeanReference to the given bean name, with the option to mark it as reference to a bean in the parent factory.
Public Methods
boolean equals(Object other)
String getBeanName()
Return the target bean name that this reference points to (never null).
Object getSource()
Return the configuration source Object for this metadata element (may be null).
int hashCode()
boolean isToParent()
Return whether this is an explicit reference to a bean in the parent factory.
void setSource(Object source)
Set the configuration source Object for this metadata element.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.beans.BeanMetadataElement
From interface org.springframework.beans.factory.config.BeanReference

Public Constructors

public RuntimeBeanReference (String beanName)

Also: SpringBeans

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

Parameters
beanName name of the target bean

public RuntimeBeanReference (String beanName, boolean toParent)

Also: SpringBeans

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

Parameters
beanName name of the target bean
toParent whether this is an explicit reference to a bean in the parent factory

Public Methods

public boolean equals (Object other)

public String getBeanName ()

Also: SpringBeans

Return the target bean name that this reference points to (never null).

public Object getSource ()

Also: SpringBeans

Return the configuration source Object for this metadata element (may be null).

public int hashCode ()

public boolean isToParent ()

Also: SpringBeans

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

public void setSource (Object source)

Also: SpringBeans

Set the configuration source Object for this metadata element.

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

public String toString ()