类 BeanMetadataAttribute
- java.lang.Object
- org.springframework.beans.BeanMetadataAttribute
- 所有已实现的接口:
BeanMetadataElement
public class BeanMetadataAttribute extends Object implements BeanMetadataElement
Holder for a key-value style attribute that is part of a bean definition. Keeps track of the definition source in addition to the key-value pair.- 从以下版本开始:
- 2.5
- 作者:
- Juergen Hoeller
构造器概要
构造器 构造器 说明 BeanMetadataAttribute(String name, Object value)
Create a new AttributeValue instance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 boolean
equals(Object other)
String
getName()
Return the name of the attribute.Object
getSource()
Return the configuration sourceObject
for this metadata element (may benull
).Object
getValue()
Return the value of the attribute.int
hashCode()
void
setSource(Object source)
Set the configuration sourceObject
for this metadata element.String
toString()
构造器详细资料
BeanMetadataAttribute
public BeanMetadataAttribute(String name, Object value)
Create a new AttributeValue instance.- 参数:
name
- the name of the attribute (nevernull
)value
- the value of the attribute (possibly before type conversion)
方法详细资料
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