public class RuntimeBeanNameReference extends java.lang.Object implements BeanReference
RuntimeBeanReference
,
BeanDefinition.getPropertyValues()
,
BeanFactory.getBean(java.lang.String)
Constructor and Description |
---|
RuntimeBeanNameReference(java.lang.String beanName)
Create a new RuntimeBeanNameReference to the given bean name.
|
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() |
void |
setSource(java.lang.Object source)
Set the configuration source
Object for this metadata element. |
java.lang.String |
toString() |
public RuntimeBeanNameReference(java.lang.String beanName)
beanName
- name of the target beanpublic java.lang.String getBeanName()
BeanReference
null
).getBeanName
in interface BeanReference
public void setSource(@Nullable java.lang.Object source)
Object
for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
@Nullable public java.lang.Object getSource()
BeanMetadataElement
Object
for this metadata element
(may be null
).getSource
in interface BeanMetadataElement
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object