Package org.springframework.beans
Class BeanMetadataAttribute
java.lang.Object
org.springframework.beans.BeanMetadataAttribute
- All Implemented Interfaces:
- 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 SummaryConstructorsConstructorDescriptionBeanMetadataAttribute(String name, @Nullable Object value) Create a newAttributeValueinstance.
- 
Method SummaryModifier and TypeMethodDescriptionbooleangetName()Return the name of the attribute.Return the configuration sourceObjectfor this metadata element (may benull).getValue()Return the value of the attribute.inthashCode()voidSet the configuration sourceObjectfor this metadata element.toString()
- 
Constructor Details- 
BeanMetadataAttributeCreate a newAttributeValueinstance.- Parameters:
- name- the name of the attribute (never- null)
- value- the value of the attribute (possibly before type conversion)
 
 
- 
- 
Method Details- 
getNameReturn the name of the attribute.
- 
getValueReturn the value of the attribute.
- 
setSourceSet the configuration sourceObjectfor this metadata element.The exact type of the object will depend on the configuration mechanism used. 
- 
getSourceDescription copied from interface:BeanMetadataElementReturn the configuration sourceObjectfor this metadata element (may benull).- Specified by:
- getSourcein interface- BeanMetadataElement
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-