public class RuntimeBeanReference extends java.lang.Object implements BeanReference
BeanDefinition.getPropertyValues(),
BeanFactory.getBean(java.lang.String)| Constructor and Description |
|---|
RuntimeBeanReference(java.lang.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(java.lang.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.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
boolean |
isToParent()
Return whether this is an explicit reference to a bean
in the parent factory.
|
void |
setSource(java.lang.Object source)
Set the configuration source
Object for this metadata element. |
java.lang.String |
toString() |
public RuntimeBeanReference(java.lang.String beanName)
beanName - name of the target beanpublic RuntimeBeanReference(java.lang.String beanName,
boolean toParent)
beanName - name of the target beantoParent - whether this is an explicit reference to
a bean in the parent factorypublic java.lang.String getBeanName()
BeanReferencenull).getBeanName in interface BeanReferencepublic boolean isToParent()
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()
BeanMetadataElementObject for this metadata element
(may be null).getSource in interface BeanMetadataElementpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object