Uses of Class
org.springframework.core.annotation.AnnotationAttributes
Package
Description
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides.
-
Uses of AnnotationAttributes in org.springframework.core.annotation
Modifier and TypeMethodDescriptionMergedAnnotation.asAnnotationAttributes
(MergedAnnotation.Adapt... adaptations) Create a new mutableAnnotationAttributes
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 specifiedannotationType
within the annotation hierarchy above the suppliedelement
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 specifiedannotationName
within the annotation hierarchy above the suppliedelement
and merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.static AnnotationAttributes
Return anAnnotationAttributes
instance based on the given map.AnnotationAttributes.getAnnotation
(String attributeName) Get theAnnotationAttributes
stored under the specifiedattributeName
.AnnotationAttributes.getAnnotationArray
(String attributeName) Get the array ofAnnotationAttributes
stored under the specifiedattributeName
.static AnnotationAttributes
AnnotationUtils.getAnnotationAttributes
(Annotation annotation, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Retrieve the given annotation's attributes as anAnnotationAttributes
map.static AnnotationAttributes
AnnotationUtils.getAnnotationAttributes
(AnnotatedElement annotatedElement, Annotation annotation) Retrieve the given annotation's attributes as anAnnotationAttributes
map.static AnnotationAttributes
AnnotationUtils.getAnnotationAttributes
(AnnotatedElement annotatedElement, Annotation annotation, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Retrieve the given annotation's attributes as anAnnotationAttributes
map.static AnnotationAttributes
AnnotatedElementUtils.getMergedAnnotationAttributes
(AnnotatedElement element, Class<? extends Annotation> annotationType) Get the first annotation of the specifiedannotationType
within the annotation hierarchy above the suppliedelement
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 specifiedannotationName
within the annotation hierarchy above the suppliedelement
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 specifiedannotationName
within the annotation hierarchy above the suppliedelement
and merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.Modifier and TypeMethodDescriptionstatic void
AnnotationUtils.postProcessAnnotationAttributes
(Object annotatedElement, AnnotationAttributes attributes, boolean classValuesAsString) Post-process the suppliedAnnotationAttributes
, preserving nested annotations asAnnotation
instances.static void
AnnotationUtils.registerDefaultValues
(AnnotationAttributes attributes) Register the annotation-declared default values for the given attributes, if available.ModifierConstructorDescriptionCreate a newAnnotationAttributes
instance, wrapping the provided map and all its key-value pairs.