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 Summary
ConstructorsConstructorDescriptionBeanMetadataAttribute
(String name, @Nullable Object value) Create a newAttributeValue
instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
Return the name of the attribute.Return the configuration sourceObject
for this metadata element (may benull
).getValue()
Return the value of the attribute.int
hashCode()
void
Set the configuration sourceObject
for this metadata element.toString()
-
Constructor Details
-
BeanMetadataAttribute
-
-
Method Details
-
getName
Return the name of the attribute. -
getValue
-
setSource
-
getSource
Description copied from interface:BeanMetadataElement
Return the configuration sourceObject
for this metadata element (may benull
).- Specified by:
getSource
in interfaceBeanMetadataElement
-
equals
-
hashCode
-
toString
-