public class

RuntimeBeanNameReference

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

Class Overview

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

Summary

Public Constructors
RuntimeBeanNameReference(String beanName)
Create a new RuntimeBeanNameReference to the given bean name.
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()
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 RuntimeBeanNameReference (String beanName)

Also: SpringBeans

Create a new RuntimeBeanNameReference to the given bean name.

Parameters
beanName name of the target bean

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 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 ()