public class RuntimeBeanNameReference extends Object implements BeanReference
RuntimeBeanReference,
BeanDefinition.getPropertyValues(),
BeanFactory.getBean(java.lang.String)| 构造器和说明 |
|---|
RuntimeBeanNameReference(String beanName)
Create a new RuntimeBeanNameReference to the given bean name.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object other) |
String |
getBeanName()
Return the target bean name that this reference points to (never
null). |
Object |
getSource()
获取源对象,可能返回null
Return the configuration source
Object for this metadata element
(may be null). |
int |
hashCode() |
void |
setSource(Object source)
Set the configuration source
Object for this metadata element. |
String |
toString() |
public RuntimeBeanNameReference(String beanName)
beanName - name of the target beanpublic String getBeanName()
BeanReferencenull).getBeanName 在接口中 BeanReferencepublic void setSource(@Nullable
Object source)
Object for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
@Nullable public Object getSource()
BeanMetadataElementObject for this metadata element
(may be null).getSource 在接口中 BeanMetadataElement