|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 beanpublic RuntimeBeanReference(String beanName, boolean toParent)
beanName
- name of the target beantoParent
- whether this is an explicit reference to
a bean in the parent factoryMethod Detail |
---|
public String getBeanName()
BeanReference
null
).
getBeanName
in interface BeanReference
public 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()
BeanMetadataElement
Object
for this metadata element
(may be null
).
getSource
in interface BeanMetadataElement
public boolean equals(Object other)
public int hashCode()
public String toString()
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |