类 RuntimeBeanNameReference
- java.lang.Object
- org.springframework.beans.factory.config.RuntimeBeanNameReference
- 所有已实现的接口:
BeanMetadataElement
,BeanReference
public class RuntimeBeanNameReference extends Object implements 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.- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller
- 另请参阅:
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 (nevernull
).Object
getSource()
Return the configuration sourceObject
for this metadata element (may benull
).int
hashCode()
void
setSource(Object source)
Set the configuration sourceObject
for this metadata element.String
toString()
构造器详细资料
RuntimeBeanNameReference
public RuntimeBeanNameReference(String beanName)
Create a new RuntimeBeanNameReference to the given bean name.- 参数:
beanName
- name of the target bean
方法详细资料
getBeanName
public String getBeanName()
从接口复制的说明:BeanReference
Return the target bean name that this reference points to (nevernull
).- 指定者:
getBeanName
在接口中BeanReference
setSource
public void setSource(Object source)
Set the configuration sourceObject
for this metadata element.The exact type of the object will depend on the configuration mechanism used.
getSource
public Object getSource()
从接口复制的说明:BeanMetadataElement
Return the configuration sourceObject
for this metadata element (may benull
).- 指定者:
getSource
在接口中BeanMetadataElement