Package org.springframework.beans
Class BeanMetadataAttribute
- java.lang.Object
- org.springframework.beans.BeanMetadataAttribute
- All Implemented Interfaces:
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.- Since:
- 2.5
- Author:
- Juergen Hoeller
Constructor Summary
Constructors Constructor Description BeanMetadataAttribute(String name, Object value)Create a new AttributeValue instance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)StringgetName()Return the name of the attribute.ObjectgetSource()Return the configuration sourceObjectfor this metadata element (may benull).ObjectgetValue()Return the value of the attribute.inthashCode()voidsetSource(Object source)Set the configuration sourceObjectfor this metadata element.StringtoString()
Constructor Detail
BeanMetadataAttribute
public BeanMetadataAttribute(String name, Object value)
Create a new AttributeValue instance.- Parameters:
name- the name of the attribute (nevernull)value- the value of the attribute (possibly before type conversion)
Method Detail
setSource
public void setSource(Object source)
Set the configuration sourceObjectfor this metadata element.The exact type of the object will depend on the configuration mechanism used.
getSource
public Object getSource()
Description copied from interface:BeanMetadataElementReturn the configuration sourceObjectfor this metadata element (may benull).- Specified by:
getSourcein interfaceBeanMetadataElement