程序包 cn.taketoday.core.annotation
package cn.taketoday.core.annotation
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides. Enhanced from spring
- 作者:
- TODAY 2021/8/15 22:41
-
类说明
@AliasForis an annotation that is used to declare aliases for annotation attributes.General utility methods for finding annotations, meta-annotations, and repeatable annotations onAnnotatedElements.LinkedHashMapsubclass representing annotation attribute key-value pairs as read byAnnotationUtils,AnnotatedElementUtils, and reflection- and ASM-basedAnnotationMetadataimplementations.AnnotationAwareOrderComparatoris an extension ofOrderComparatorthat supportsOrderedinterface as well as the@Orderand@Priorityannotations, with an order value provided by anOrderedinstance overriding a statically defined annotation value (if any).Thrown byAnnotationUtilsand synthesized annotations if an annotation is improperly configured.Example class used to testAnnotationsScannerwith enclosing classes.Callback interface that can be used to filter specific annotation types.AnnotationProvider<A extends Annotation>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 aMergedAnnotationscollection.Adaptations that can be applied to attribute values when creating Maps orAnnotationAttributes.Collectorimplementations that provide various reduction operations forMergedAnnotationinstances.Predicate implementations that provide various test operations forMergedAnnotations.Fluent API for configuring the search algorithm used in theMergedAnnotationsmodel 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 twoMergedAnnotationinstances.MergedAnnotationSelectorimplementations that provide various options forMergedAnnotationinstances.@Orderdefines 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.AMethodParametervariant which synthesizes annotations that declare attribute aliases via@AliasFor.