java.lang.Object | ||
↳ | org.springframework.core.AttributeAccessorSupport | |
↳ | org.springframework.beans.BeanMetadataAttributeAccessor |
Known Direct Subclasses |
Known Indirect Subclasses |
Extension of AttributeAccessorSupport
,
holding attributes as BeanMetadataAttribute
objects in order
to keep track of the definition source.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add the given BeanMetadataAttribute to this accessor's set of attributes.
| |||||||||||
Get the value of the attribute identified by
name . | |||||||||||
Look up the given BeanMetadataAttribute in this accessor's set of attributes.
| |||||||||||
Return the configuration source
Object for this metadata element
(may be null ). | |||||||||||
Remove the attribute identified by
name and return its value. | |||||||||||
Set the attribute defined by
name to the supplied value . | |||||||||||
Set the configuration source
Object for this metadata element. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.core.AttributeAccessorSupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.BeanMetadataElement
| |||||||||||
From interface
org.springframework.core.AttributeAccessor
|
Add the given BeanMetadataAttribute to this accessor's set of attributes.
attribute | the BeanMetadataAttribute object to register |
---|
Get the value of the attribute identified by name
.
Return null
if the attribute doesn't exist.
name | the unique attribute key |
---|
Look up the given BeanMetadataAttribute in this accessor's set of attributes.
name | the name of the attribute |
---|
null
if no such attribute defined
Return the configuration source Object
for this metadata element
(may be null
).
Remove the attribute identified by name
and return its value.
Return null
if no attribute under name
is found.
name | the unique attribute key |
---|
Set the attribute defined by name
to the supplied value
.
If value
is null
, the attribute is removed
.
In general, users should take care to prevent overlaps with other metadata attributes by using fully-qualified names, perhaps using class or package names as prefix.
name | the unique attribute key |
---|---|
value | the attribute value to be attached |
Set the configuration source Object
for this metadata element.
The exact type of the object will depend on the configuration mechanism used.