Package | Description |
---|---|
org.springframework.beans.factory.annotation |
Support package for annotation-driven bean configuration.
|
org.springframework.cache.annotation |
Annotations and supporting classes for declarative cache management.
|
org.springframework.context.annotation |
Annotation support for the Application Context, including JSR-250 "common"
annotations, component-scanning, and Java-based metadata for creating
Spring-managed objects.
|
org.springframework.core.annotation |
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides.
|
org.springframework.core.type.classreading |
Support classes for reading annotation and class-level metadata.
|
org.springframework.scheduling.annotation |
Annotation support for asynchronous method execution.
|
org.springframework.test.context |
This package contains the Spring TestContext Framework which
provides annotation-driven unit and integration testing support that is
agnostic of the actual testing framework in use.
|
org.springframework.test.util |
General utility classes for use in unit and integration tests.
|
org.springframework.transaction.annotation |
Spring's support for annotation-based transaction demarcation.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
AutowiredAnnotationBeanPostProcessor.determineRequiredStatus(AnnotationAttributes ann)
Deprecated.
since 5.2, in favor of
AutowiredAnnotationBeanPostProcessor.determineRequiredStatus(MergedAnnotation) |
protected Object |
QualifierAnnotationAutowireCandidateResolver.extractValue(AnnotationAttributes attr)
Extract the value attribute from the given annotation.
|
Modifier and Type | Field and Description |
---|---|
protected AnnotationAttributes |
AbstractCachingConfiguration.enableCaching |
Modifier and Type | Method and Description |
---|---|
static List<TypeFilter> |
TypeFilterUtils.createTypeFiltersFor(AnnotationAttributes filterAttributes,
Environment environment,
ResourceLoader resourceLoader,
BeanDefinitionRegistry registry)
Create type filters from the supplied
AnnotationAttributes , such as those sourced from
ComponentScan.includeFilters() or ComponentScan.excludeFilters() . |
Modifier and Type | Method and Description |
---|---|
AnnotationAttributes |
MergedAnnotation.asAnnotationAttributes(MergedAnnotation.Adapt... adaptations)
Create a new mutable
AnnotationAttributes instance from this
merged annotation. |
static AnnotationAttributes |
AnnotatedElementUtils.findMergedAnnotationAttributes(AnnotatedElement element,
Class<? extends Annotation> annotationType,
boolean classValuesAsString,
boolean nestedAnnotationsAsMap)
Find the first annotation of the specified
annotationType within
the annotation hierarchy above the supplied element and
merge that annotation's attributes with matching attributes from
annotations in lower levels of the annotation hierarchy. |
static AnnotationAttributes |
AnnotatedElementUtils.findMergedAnnotationAttributes(AnnotatedElement element,
String annotationName,
boolean classValuesAsString,
boolean nestedAnnotationsAsMap)
Find the first annotation of the specified
annotationName within
the annotation hierarchy above the supplied element and
merge that annotation's attributes with matching attributes from
annotations in lower levels of the annotation hierarchy. |
static AnnotationAttributes |
AnnotationAttributes.fromMap(Map<String,Object> map)
Return an
AnnotationAttributes instance based on the given map. |
AnnotationAttributes |
AnnotationAttributes.getAnnotation(String attributeName)
Get the
AnnotationAttributes stored under the specified
attributeName . |
AnnotationAttributes[] |
AnnotationAttributes.getAnnotationArray(String attributeName)
Get the array of
AnnotationAttributes stored under the specified
attributeName . |
static AnnotationAttributes |
AnnotationUtils.getAnnotationAttributes(AnnotatedElement annotatedElement,
Annotation annotation)
Retrieve the given annotation's attributes as an
AnnotationAttributes map. |
static AnnotationAttributes |
AnnotationUtils.getAnnotationAttributes(AnnotatedElement annotatedElement,
Annotation annotation,
boolean classValuesAsString,
boolean nestedAnnotationsAsMap)
Retrieve the given annotation's attributes as an
AnnotationAttributes map. |
static AnnotationAttributes |
AnnotationUtils.getAnnotationAttributes(Annotation annotation,
boolean classValuesAsString,
boolean nestedAnnotationsAsMap)
Retrieve the given annotation's attributes as an
AnnotationAttributes map. |
static AnnotationAttributes |
AnnotatedElementUtils.getMergedAnnotationAttributes(AnnotatedElement element,
Class<? extends Annotation> annotationType)
Get the first annotation of the specified
annotationType within
the annotation hierarchy above the supplied element and
merge that annotation's attributes with matching attributes from
annotations in lower levels of the annotation hierarchy. |
static AnnotationAttributes |
AnnotatedElementUtils.getMergedAnnotationAttributes(AnnotatedElement element,
String annotationName)
Get the first annotation of the specified
annotationName within
the annotation hierarchy above the supplied element and
merge that annotation's attributes with matching attributes from
annotations in lower levels of the annotation hierarchy. |
static AnnotationAttributes |
AnnotatedElementUtils.getMergedAnnotationAttributes(AnnotatedElement element,
String annotationName,
boolean classValuesAsString,
boolean nestedAnnotationsAsMap)
Get the first annotation of the specified
annotationName within
the annotation hierarchy above the supplied element and
merge that annotation's attributes with matching attributes from
annotations in lower levels of the annotation hierarchy. |
Modifier and Type | Method and Description |
---|---|
static void |
AnnotationUtils.postProcessAnnotationAttributes(Object annotatedElement,
AnnotationAttributes attributes,
boolean classValuesAsString)
Post-process the supplied
AnnotationAttributes , preserving nested
annotations as Annotation instances. |
static void |
AnnotationUtils.registerDefaultValues(AnnotationAttributes attributes)
Register the annotation-declared default values for the given attributes,
if available.
|
Constructor and Description |
---|
AnnotationAttributes(AnnotationAttributes other)
Create a new
AnnotationAttributes instance, wrapping the provided
map and all its key-value pairs. |
Modifier and Type | Field and Description |
---|---|
protected LinkedMultiValueMap<String,AnnotationAttributes> |
AnnotationMetadataReadingVisitor.attributesMap
Deprecated.
Declared as a
LinkedMultiValueMap instead of a MultiValueMap
to ensure that the hierarchical ordering of the entries is preserved. |
protected LinkedMultiValueMap<String,AnnotationAttributes> |
MethodMetadataReadingVisitor.attributesMap
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
AnnotationAttributes |
AnnotationMetadataReadingVisitor.getAnnotationAttributes(String annotationName,
boolean classValuesAsString)
Deprecated.
|
AnnotationAttributes |
MethodMetadataReadingVisitor.getAnnotationAttributes(String annotationName,
boolean classValuesAsString)
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected AnnotationAttributes |
AbstractAsyncConfiguration.enableAsync |
Constructor and Description |
---|
ContextConfigurationAttributes(Class<?> declaringClass,
AnnotationAttributes annAttrs)
Construct a new
ContextConfigurationAttributes instance for the
supplied AnnotationAttributes (parsed from a
@ContextConfiguration annotation) and
the test class that declared them. |
Modifier and Type | Method and Description |
---|---|
AnnotationAttributes |
MetaAnnotationUtils.AnnotationDescriptor.getAnnotationAttributes() |
Modifier and Type | Field and Description |
---|---|
protected AnnotationAttributes |
AbstractTransactionManagementConfiguration.enableTx |
Modifier and Type | Method and Description |
---|---|
protected TransactionAttribute |
SpringTransactionAnnotationParser.parseTransactionAnnotation(AnnotationAttributes attributes) |
protected TransactionAttribute |
JtaTransactionAnnotationParser.parseTransactionAnnotation(AnnotationAttributes attributes) |