Uses of Interface
org.miaixz.bus.core.lang.annotation.resolve.AnnotationMapping
Packages that use AnnotationMapping
Package
Description
注解包,提供增强型注解和注解工具类,处理包括:
注解元素(AnnotatedElements)上的注解。
父元素上的注解(包括类、接口、方法、属性)。
注解上的注解。
父元素上的注解上的注解。
AnnotatedElement 对象实现
-
Uses of AnnotationMapping in org.miaixz.bus.core.lang.annotation.resolve
Classes in org.miaixz.bus.core.lang.annotation.resolve that implement AnnotationMappingModifier and TypeClassDescriptionclassAnnotationMapping的基本实现,仅仅是简单包装了注解对象class注解映射,用于包装并增强一个普通注解对象, 包装后的可以通过getResolvedXXX获得注解对象或属性值, 可以支持属性别名与属性覆写的属性解析机制Methods in org.miaixz.bus.core.lang.annotation.resolve that return AnnotationMappingMethods in org.miaixz.bus.core.lang.annotation.resolve with parameters of type AnnotationMappingModifier and TypeMethodDescriptionstatic <A extends Annotation>
AAnnotationMappingProxy.create(Class<? extends A> annotationType, AnnotationMapping<A> mapping) 创建一个代理对象 -
Uses of AnnotationMapping in org.miaixz.bus.core.lang.annotation.resolve.elements
Classes in org.miaixz.bus.core.lang.annotation.resolve.elements with type parameters of type AnnotationMappingModifier and TypeClassDescriptionclassMetaAnnotatedElement<T extends AnnotationMapping<Annotation>>注解元素映射,用于包装一个AnnotatedElement,然后将被包装的元素上, 直接声明的注解以及这些注解的元组全部解析为ResolvedAnnotationMapping。 从而用于支持对元注解的访问操作。class支持可重复注解的增强AnnotatedElement, 功能与MetaAnnotatedElement类似,但是存在下述差异: 限制以同一根注解延伸出的树结构上——而不是AnnotatedElement上——每种类型注解只能保留一个, 即当AnnotatedElement存在多个根注解有相同的元注解时,这些元注解会都会被扫描到; 支持扫描AnnotatedElement可重复注解,即当当前实例指定的RepeatableAnnotationCollector支持从AnnotatedElement上直接声明的注解中获得可重复注解时, 则将会自动将其展开直到不为容器注解为止。 eg: A上存在注解X,该注解是一个容器注解,内部可重复注解Y, 包含解析后,得到注解X与可重复注解Y, 同理,若存在X、Y、X的嵌套关系,则解析后获得全部三者; 由于上述机制,当通过实例的RepeatableMetaAnnotatedElement.getAnnotation(Class)或RepeatableMetaAnnotatedElement.getDeclaredAnnotation(Class)方法获得指定类型注解时,若该类型注解存在多个,仅能尽可能获得最先被扫描到的那一个。Methods in org.miaixz.bus.core.lang.annotation.resolve.elements with type parameters of type AnnotationMappingModifier and TypeMethodDescriptionstatic <A extends AnnotationMapping<Annotation>>
MetaAnnotatedElement<A> MetaAnnotatedElement.create(AnnotatedElement element, BiFunction<A, Annotation, A> mappingFactory) 获取AnnotatedElement上的注解结构,该方法会针对相同的AnnotatedElement缓存映射对象static <A extends AnnotationMapping<Annotation>>
RepeatableMetaAnnotatedElement<A> RepeatableMetaAnnotatedElement.create(AnnotatedElement element, BiFunction<A, Annotation, A> mappingFactory) 获取AnnotatedElement上的注解结构,该方法会针对相同的AnnotatedElement缓存映射对象static <A extends AnnotationMapping<Annotation>>
RepeatableMetaAnnotatedElement<A> RepeatableMetaAnnotatedElement.create(RepeatableAnnotationCollector collector, AnnotatedElement element, BiFunction<A, Annotation, A> mappingFactory) 获取AnnotatedElement上的注解结构,该方法会针对相同的AnnotatedElement缓存映射对象