|
spring-beans | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.core.AttributeAccessorSupport
org.springframework.beans.BeanMetadataAttributeAccessor
public class BeanMetadataAttributeAccessor
Extension of AttributeAccessorSupport
,
holding attributes as BeanMetadataAttribute
objects in order
to keep track of the definition source.
Constructor Summary | |
---|---|
BeanMetadataAttributeAccessor()
|
Method Summary | |
---|---|
void |
addMetadataAttribute(BeanMetadataAttribute attribute)
Add the given BeanMetadataAttribute to this accessor's set of attributes. |
java.lang.Object |
getAttribute(java.lang.String name)
|
BeanMetadataAttribute |
getMetadataAttribute(java.lang.String name)
Look up the given BeanMetadataAttribute in this accessor's set of attributes. |
java.lang.Object |
getSource()
Return the configuration source Object for this metadata element
(may be null ). |
java.lang.Object |
removeAttribute(java.lang.String name)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
|
void |
setSource(java.lang.Object source)
Set the configuration source Object for this metadata element. |
Methods inherited from class org.springframework.core.AttributeAccessorSupport |
---|
attributeNames, copyAttributesFrom, equals, hasAttribute, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanMetadataAttributeAccessor()
Method Detail |
---|
public void setSource(java.lang.Object source)
Object
for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
public java.lang.Object getSource()
BeanMetadataElement
Object
for this metadata element
(may be null
).
getSource
in interface BeanMetadataElement
public void addMetadataAttribute(BeanMetadataAttribute attribute)
attribute
- the BeanMetadataAttribute object to registerpublic BeanMetadataAttribute getMetadataAttribute(java.lang.String name)
name
- the name of the attribute
null
if no such attribute definedpublic void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface org.springframework.core.AttributeAccessor
setAttribute
in class org.springframework.core.AttributeAccessorSupport
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface org.springframework.core.AttributeAccessor
getAttribute
in class org.springframework.core.AttributeAccessorSupport
public java.lang.Object removeAttribute(java.lang.String name)
removeAttribute
in interface org.springframework.core.AttributeAccessor
removeAttribute
in class org.springframework.core.AttributeAccessorSupport
|
spring-beans | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |