org.springframework.core.AttributeAccessorSupport ,
holding attributes as BeanMetadataAttribute objects in order
to keep track of the definition source.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addMetadataAttribute(BeanMetadataAttribute
the BeanMetadataAttribute object to register attribute)Add the given BeanMetadataAttribute to this accessor's set of attributes. |
| public Object | getAttribute(String
the unique attribute key name)Overrides org. Implements org. name.
|
| public BeanMetadataAttribute | Returns: the corresponding BeanMetadataAttribute object, ornull if no such attribute definedthe name of the attribute name)Look up the given BeanMetadataAttribute in this accessor's set of attributes. |
| public Object | getSource()
Overrides default org. Object for this metadata element
(may be null).
|
| public Object | removeAttribute(String
the unique attribute key name)Overrides org. Implements org. name and return its value.
|
| public void | setAttribute(String
the unique attribute key name, Object the attribute value to be attached value)Overrides org. Implements org. name to the supplied value.
|
| public void |
| source | back to summary |
|---|---|
| private Object source
| |
| BeanMetadataAttributeAccessor | back to summary |
|---|---|
| public BeanMetadataAttributeAccessor() | |
| addMetadataAttribute | back to summary |
|---|---|
| public void addMetadataAttribute(BeanMetadataAttribute attribute) Add the given BeanMetadataAttribute to this accessor's set of attributes.
| |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String name) Overrides org. Implements org. Doc from org. Get the value of the attribute identified by Return | |
| getMetadataAttribute | back to summary |
|---|---|
| public BeanMetadataAttribute getMetadataAttribute(String name) Look up the given BeanMetadataAttribute in this accessor's set of attributes.
| |
| getSource | back to summary |
|---|---|
| public Object getSource() Overrides default org. Doc from org. Return the configuration source | |
| removeAttribute | back to summary |
|---|---|
| public Object removeAttribute(String name) Overrides org. Implements org. Doc from org. Remove the attribute identified by Return | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String name, Object value) Overrides org. Implements org. Doc from org. Set the attribute defined by If 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. | |
| setSource | back to summary |
|---|---|
| public void setSource(Object source) Set the configuration source The exact type of the object will depend on the configuration mechanism used. | |