Uses of Class
org.springframework.core.annotation.AnnotationAttributes
Packages that use AnnotationAttributes
Package
Description
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides.
Core support package for type introspection.
-
Uses of AnnotationAttributes in org.springframework.core.annotation
Methods in org.springframework.core.annotation that return AnnotationAttributesModifier and TypeMethodDescriptionMergedAnnotation.asAnnotationAttributes(MergedAnnotation.Adapt... adaptations) Create a new mutableAnnotationAttributesinstance from this merged annotation.static AnnotationAttributesAnnotatedElementUtils.findMergedAnnotationAttributes(AnnotatedElement element, Class<? extends Annotation> annotationType, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Find the first annotation of the specifiedannotationTypewithin the annotation hierarchy above the suppliedelementand merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.static AnnotationAttributesAnnotatedElementUtils.findMergedAnnotationAttributes(AnnotatedElement element, String annotationName, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Find the first annotation of the specifiedannotationNamewithin the annotation hierarchy above the suppliedelementand merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.static AnnotationAttributesReturn anAnnotationAttributesinstance based on the given map.AnnotationAttributes.getAnnotation(String attributeName) Get theAnnotationAttributesstored under the specifiedattributeName.AnnotationAttributes.getAnnotationArray(String attributeName) Get the array ofAnnotationAttributesstored under the specifiedattributeName.static AnnotationAttributesAnnotationUtils.getAnnotationAttributes(Annotation annotation, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Retrieve the given annotation's attributes as anAnnotationAttributesmap.static AnnotationAttributesAnnotationUtils.getAnnotationAttributes(AnnotatedElement annotatedElement, Annotation annotation) Retrieve the given annotation's attributes as anAnnotationAttributesmap.static AnnotationAttributesAnnotationUtils.getAnnotationAttributes(AnnotatedElement annotatedElement, Annotation annotation, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Retrieve the given annotation's attributes as anAnnotationAttributesmap.static AnnotationAttributesAnnotatedElementUtils.getMergedAnnotationAttributes(AnnotatedElement element, Class<? extends Annotation> annotationType) Get the first annotation of the specifiedannotationTypewithin the annotation hierarchy above the suppliedelementand merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.static AnnotationAttributesAnnotatedElementUtils.getMergedAnnotationAttributes(AnnotatedElement element, String annotationName) Get the first annotation of the specifiedannotationNamewithin the annotation hierarchy above the suppliedelementand merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.static AnnotationAttributesAnnotatedElementUtils.getMergedAnnotationAttributes(AnnotatedElement element, String annotationName, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Get the first annotation of the specifiedannotationNamewithin the annotation hierarchy above the suppliedelementand merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.Methods in org.springframework.core.annotation with parameters of type AnnotationAttributesModifier and TypeMethodDescriptionstatic voidAnnotationUtils.postProcessAnnotationAttributes(Object annotatedElement, AnnotationAttributes attributes, boolean classValuesAsString) Post-process the suppliedAnnotationAttributes, preserving nested annotations asAnnotationinstances.static voidAnnotationUtils.registerDefaultValues(AnnotationAttributes attributes) Register the annotation-declared default values for the given attributes, if available.Constructors in org.springframework.core.annotation with parameters of type AnnotationAttributesModifierConstructorDescriptionCreate a newAnnotationAttributesinstance, wrapping the provided map and all its key-value pairs. -
Uses of AnnotationAttributes in org.springframework.core.type
Methods in org.springframework.core.type that return types with arguments of type AnnotationAttributesModifier and TypeMethodDescriptiondefault Set<AnnotationAttributes>AnnotatedTypeMetadata.getMergedRepeatableAnnotationAttributes(Class<? extends Annotation> annotationType, Class<? extends Annotation> containerType, boolean classValuesAsString) Retrieve all repeatable annotations of the given type within the annotation hierarchy above the underlying element (as direct annotation or meta-annotation); and for each annotation found, merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy and store the results in an instance ofAnnotationAttributes.default Set<AnnotationAttributes>AnnotatedTypeMetadata.getMergedRepeatableAnnotationAttributes(Class<? extends Annotation> annotationType, Class<? extends Annotation> containerType, boolean classValuesAsString, boolean sortByReversedMetaDistance) Retrieve all repeatable annotations of the given type within the annotation hierarchy above the underlying element (as direct annotation or meta-annotation); and for each annotation found, merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy and store the results in an instance ofAnnotationAttributes.default Set<AnnotationAttributes>AnnotatedTypeMetadata.getMergedRepeatableAnnotationAttributes(Class<? extends Annotation> annotationType, Class<? extends Annotation> containerType, Predicate<MergedAnnotation<? extends Annotation>> predicate, boolean classValuesAsString, boolean sortByReversedMetaDistance) Retrieve all repeatable annotations of the given type within the annotation hierarchy above the underlying element (as direct annotation or meta-annotation); and for each annotation found, merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy and store the results in an instance ofAnnotationAttributes.