Class RuntimeBeanNameReference
java.lang.Object
org.springframework.beans.factory.config.RuntimeBeanNameReference
- All Implemented Interfaces:
BeanMetadataElement
,BeanReference
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.
- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
ConstructorDescriptionRuntimeBeanNameReference
(String beanName) Create a new RuntimeBeanNameReference to the given bean name. -
Method Summary
-
Constructor Details
-
RuntimeBeanNameReference
Create a new RuntimeBeanNameReference to the given bean name.- Parameters:
beanName
- name of the target bean
-
-
Method Details
-
getBeanName
Description copied from interface:BeanReference
Return the target bean name that this reference points to (nevernull
).- Specified by:
getBeanName
in interfaceBeanReference
-
setSource
Set the configuration sourceObject
for this metadata element.The exact type of the object will depend on the configuration mechanism used.
-
getSource
Description copied from interface:BeanMetadataElement
Return the configuration sourceObject
for this metadata element (may benull
).- Specified by:
getSource
in interfaceBeanMetadataElement
-
equals
-
hashCode
public int hashCode() -
toString
-