| org.springframework.core.AttributeAccessor |
Known Indirect Subclasses
AbstractBeanDefinition,
AnnotatedBeanDefinition,
AnnotatedGenericBeanDefinition,
AttributeAccessorSupport,
AutowireCandidateQualifier,
BeanDefinition,
BeanMetadataAttributeAccessor,
ChildBeanDefinition,
GenericBeanDefinition,
PropertyValue,
RootBeanDefinition,
ScannedGenericBeanDefinition,
TestContext
| AbstractBeanDefinition |
Base class for concrete, full-fledged
BeanDefinition classes,
factoring out common properties of RootBeanDefinition and
ChildBeanDefinition. |
| AnnotatedBeanDefinition |
Extended BeanDefinition
interface that exposes AnnotationMetadata
about its bean class - without requiring the class to be loaded yet. |
| AnnotatedGenericBeanDefinition |
Extension of the GenericBeanDefinition
class, adding support for annotation metadata exposed through the
AnnotatedBeanDefinition interface. |
| AttributeAccessorSupport |
Support class for AttributeAccessors, providing
a base implementation of all methods. |
| AutowireCandidateQualifier |
Qualifier for resolving autowire candidates. |
| BeanDefinition |
A BeanDefinition describes a bean instance, which has property values,
constructor argument values, and further information supplied by
concrete implementations. |
| BeanMetadataAttributeAccessor |
Extension of AttributeAccessorSupport,
holding attributes as BeanMetadataAttribute objects in order
to keep track of the definition source. |
| ChildBeanDefinition |
Bean definition for beans which inherit settings from their parent. |
| GenericBeanDefinition |
GenericBeanDefinition is a one-stop shop for standard bean definition purposes. |
| PropertyValue |
Object to hold information and value for an individual bean property. |
| RootBeanDefinition |
A root bean definition represents the merged bean definition that backs
a specific bean in a Spring BeanFactory at runtime. |
| ScannedGenericBeanDefinition |
Extension of the GenericBeanDefinition
class, based on an ASM ClassReader, with support for annotation metadata exposed
through the AnnotatedBeanDefinition interface. |
| TestContext |
TestContext encapsulates the context in which a test is executed, agnostic of
the actual testing framework in use. |
|
Class Overview
Interface defining a generic contract for attaching and accessing metadata
to/from arbitrary objects.
Public Methods
public
abstract
String[]
attributeNames
()
Return the names of all attributes.
public
abstract
Object
getAttribute
(String name)
Get the value of the attribute identified by name.
Return null if the attribute doesn't exist.
Parameters
| name
| the unique attribute key |
Returns
- the current value of the attribute, if any
public
abstract
boolean
hasAttribute
(String name)
Return true if the attribute identified by name exists.
Otherwise return false.
Parameters
| name
| the unique attribute key
|
public
abstract
Object
removeAttribute
(String name)
Remove the attribute identified by name and return its value.
Return null if no attribute under name is found.
Parameters
| name
| the unique attribute key |
Returns
- the last value of the attribute, if any
public
abstract
void
setAttribute
(String name, Object value)
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.
Parameters
| name
| the unique attribute key |
| value
| the attribute value to be attached
|