java.lang.Object | |
↳ | org.springframework.beans.factory.config.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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new RuntimeBeanReference to the given bean name,
without explicitly marking it as reference to a bean in
the parent factory.
| |||||||||||
Create a new RuntimeBeanReference to the given bean name,
with the option to mark it as reference to a bean in
the parent factory.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the target bean name that this reference points to (never
null ). | |||||||||||
Return the configuration source
Object for this metadata element
(may be null ). | |||||||||||
Return whether this is an explicit reference to a bean
in the parent factory.
| |||||||||||
Set the configuration source
Object for this metadata element. | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.BeanMetadataElement
| |||||||||||
From interface
org.springframework.beans.factory.config.BeanReference
|
Create a new RuntimeBeanReference to the given bean name, without explicitly marking it as reference to a bean in the parent factory.
beanName | name of the target bean |
---|
Create a new RuntimeBeanReference to the given bean name, with the option to mark it as reference to a bean in the parent factory.
beanName | name of the target bean |
---|---|
toParent | whether this is an explicit reference to a bean in the parent factory |
Return the target bean name that this reference points to (never null
).
Return the configuration source Object
for this metadata element
(may be null
).
Return whether this is an explicit reference to a bean in the parent factory.
Set the configuration source Object
for this metadata element.
The exact type of the object will depend on the configuration mechanism used.