|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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)| Constructor Summary | |
|---|---|
RuntimeBeanNameReference(String beanName)
Create a new RuntimeBeanNameReference to the given bean name. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RuntimeBeanNameReference(String beanName)
beanName - name of the target bean| Method Detail |
|---|
public String getBeanName()
BeanReferencenull).
getBeanName in interface BeanReferencepublic void setSource(Object source)
Object for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
public Object getSource()
BeanMetadataElementObject for this metadata element
(may be null).
getSource in interface BeanMetadataElementpublic boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||