|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.beans.factory.config.RuntimeBeanNameReference
public class RuntimeBeanNameReference
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.
RuntimeBeanReference
,
BeanDefinition.getPropertyValues()
,
BeanFactory.getBean(java.lang.String)
Field Summary | |
---|---|
private java.lang.String |
beanName
|
private java.lang.Object |
source
|
Constructor Summary | |
---|---|
RuntimeBeanNameReference(java.lang.String beanName)
Create a new RuntimeBeanNameReference to the given bean name. |
Method Summary | |
---|---|
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 |
Field Detail |
---|
private final java.lang.String beanName
private java.lang.Object source
Constructor Detail |
---|
public RuntimeBeanNameReference(java.lang.String beanName)
beanName
- name of the target beanMethod Detail |
---|
public java.lang.String getBeanName()
BeanReference
null
).
getBeanName
in interface BeanReference
public void setSource(java.lang.Object source)
Object
for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
public java.lang.Object getSource()
BeanMetadataElement
Object
for this metadata element
(may be null
).
getSource
in interface BeanMetadataElement
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |