|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.beans.factory.config.RuntimeBeanReference
public class RuntimeBeanReference
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.
BeanDefinition.getPropertyValues(),
BeanFactory.getBean(java.lang.String)| Constructor Summary | |
|---|---|
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. |
|
| 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()
|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RuntimeBeanReference(String beanName)
beanName - name of the target bean
public RuntimeBeanReference(String beanName,
boolean toParent)
beanName - name of the target beantoParent - whether this is an explicit reference to
a bean in the parent factory| Method Detail |
|---|
public String getBeanName()
BeanReferencenull).
getBeanName in interface BeanReferencepublic boolean isToParent()
public 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||