Package org.springframework.core.annotation
@NonNullApi
@NonNullFields
package org.springframework.core.annotation
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides.
-
ClassDescription
@AliasFor
is an annotation that is used to declare aliases for annotation attributes.General utility methods for finding annotations, meta-annotations, and repeatable annotations onAnnotatedElements
.A convenient wrapper for aMethod
handle, providing deep annotation introspection on methods and method parameters, including the exposure of interface-declared parameter annotations from the concrete target method.LinkedHashMap
subclass representing annotation attribute key-value pairs as read byAnnotationUtils
,AnnotatedElementUtils
, and Spring's reflection- and ASM-basedAnnotationMetadata
implementations.AnnotationAwareOrderComparator
is an extension ofOrderComparator
that supports Spring'sOrdered
interface as well as the@Order
and@Priority
annotations, with an order value provided by anOrdered
instance overriding a statically defined annotation value (if any).Thrown byAnnotationUtils
and synthesized annotations if an annotation is improperly configured.Callback interface that can be used to filter specific annotation types.General utility methods for working with annotations, handling meta-annotations, bridge methods (which the compiler generates for generic declarations) as well as super methods (for optional annotation inheritance).MergedAnnotation<A extends Annotation>A single merged annotation returned from aMergedAnnotations
collection.Adaptations that can be applied to attribute values when creating Maps orAnnotationAttributes
.Collector
implementations that provide various reduction operations forMergedAnnotation
instances.Predicate implementations that provide various test operations forMergedAnnotations
.Fluent API for configuring the search algorithm used in theMergedAnnotations
model and performing a search.Search strategies supported byMergedAnnotations.search(SearchStrategy)
as well asMergedAnnotations.from(AnnotatedElement, SearchStrategy)
and variants of that method.MergedAnnotationSelector<A extends Annotation>Strategy interface used to select between twoMergedAnnotation
instances.MergedAnnotationSelector
implementations that provide various options forMergedAnnotation
instances.@Order
defines the sort order for an annotated component.General utility for determining the order of an object based on its type declaration.Strategy used to determine annotations that act as containers for other annotations.AMethodParameter
variant which synthesizes annotations that declare attribute aliases via@AliasFor
.