程序包 org.springframework.core.annotation
Core support package for annotations, meta-annotations, and merged annotations with attribute overrides.
接口概要 接口 说明 AnnotationFilter Callback interface that can be used to filter specific annotation types.MergedAnnotation<A extends Annotation> A single merged annotation returned from aMergedAnnotationscollection.MergedAnnotations MergedAnnotationSelector<A extends Annotation> Strategy interface used to select between twoMergedAnnotationinstances.SynthesizedAnnotation Marker interface implemented by synthesized annotation proxies.类概要 类 说明 AnnotatedElementUtils General utility methods for finding annotations, meta-annotations, and repeatable annotations onAnnotatedElements.AnnotationAttributes LinkedHashMapsubclass representing annotation attribute key-value pairs as read byAnnotationUtils,AnnotatedElementUtils, and Spring's reflection- and ASM-basedAnnotationMetadataimplementations.AnnotationAwareOrderComparator AnnotationAwareOrderComparatoris an extension ofOrderComparatorthat supports Spring'sOrderedinterface as well as the@Orderand@Priorityannotations, with an order value provided by anOrderedinstance overriding a statically defined annotation value (if any).AnnotationUtils 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).MergedAnnotationCollectors Collectorimplementations that provide various reduction operations forMergedAnnotationinstances.MergedAnnotationPredicates Predicate implementations that provide various test operations forMergedAnnotations.MergedAnnotationSelectors MergedAnnotationSelectorimplementations that provide various options forMergedAnnotationinstances.OrderUtils General utility for determining the order of an object based on its type declaration.RepeatableContainers Strategy used to determine annotations that act as containers for other annotations.SynthesizingMethodParameter AMethodParametervariant which synthesizes annotations that declare attribute aliases via@AliasFor.枚举概要 枚举 说明 MergedAnnotation.Adapt Adaptations that can be applied to attribute values when creating Maps orAnnotationAttributes.MergedAnnotations.SearchStrategy Search strategies supported byMergedAnnotations.from(AnnotatedElement, SearchStrategy).异常错误概要 异常错误 说明 AnnotationConfigurationException Thrown byAnnotationUtilsand synthesized annotations if an annotation is improperly configured.