org.springframework.beans
public class: BeanMetadataAttributeAccessor [javadoc |
source]
java.lang.Object
org.springframework.core.AttributeAccessorSupport
org.springframework.beans.BeanMetadataAttributeAccessor
All Implemented Interfaces:
BeanMetadataElement, AttributeAccessor, Serializable
Direct Known Subclasses:
AnnotatedGenericBeanDefinition, PropertyValue, AbstractBeanDefinition, ChildBeanDefinition, ScannedGenericBeanDefinition, RootBeanDefinition, GenericBeanDefinition, AutowireCandidateQualifier
Extension of
org.springframework.core.AttributeAccessorSupport ,
holding attributes as
BeanMetadataAttribute objects in order
to keep track of the definition source.
- author:
Juergen - Hoeller
- since:
2.5 -
| Method from org.springframework.beans.BeanMetadataAttributeAccessor Detail: |
public void addMetadataAttribute(BeanMetadataAttribute attribute) {
super.setAttribute(attribute.getName(), attribute);
}
Add the given BeanMetadataAttribute to this accessor's set of attributes. |
public Object getAttribute(String name) {
BeanMetadataAttribute attribute = (BeanMetadataAttribute) super.getAttribute(name);
return (attribute != null ? attribute.getValue() : null);
}
|
public BeanMetadataAttribute getMetadataAttribute(String name) {
return (BeanMetadataAttribute) super.getAttribute(name);
}
Look up the given BeanMetadataAttribute in this accessor's set of attributes. |
public Object getSource() {
return this.source;
}
|
public Object removeAttribute(String name) {
BeanMetadataAttribute attribute = (BeanMetadataAttribute) super.removeAttribute(name);
return (attribute != null ? attribute.getValue() : null);
}
|
public void setAttribute(String name,
Object value) {
super.setAttribute(name, new BeanMetadataAttribute(name, value));
}
|
public void setSource(Object source) {
this.source = source;
}
|