类的使用
cn.taketoday.core.annotation.RepeatableContainers
使用RepeatableContainers的程序包
程序包
说明
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides.
-
cn.taketoday.core.annotation中RepeatableContainers的使用
修饰符和类型方法说明RepeatableContainers.and(Class<? extends Annotation> container, Class<? extends Annotation> repeatable) Add an additional explicit relationship between a contained and repeatable annotation.static RepeatableContainersRepeatableContainers.none()Create aRepeatableContainersinstance that does not expand any repeatable annotations.static RepeatableContainersRepeatableContainers.standard()Create aRepeatableContainersinstance that searches using Java's@Repeatableannotation.static RepeatableContainersRepeatableContainers.valueOf(Class<? extends Annotation> repeatable, Class<? extends Annotation> container) Create aRepeatableContainersinstance that uses a defined container and repeatable type.修饰符和类型方法说明static MergedAnnotationsMergedAnnotations.from(Object source, Annotation[] annotations, RepeatableContainers repeatableContainers) Create a newMergedAnnotationsinstance from the specified annotations.static MergedAnnotationsMergedAnnotations.from(Object source, Annotation[] annotations, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter) Create a newMergedAnnotationsinstance from the specified annotations.static MergedAnnotationsMergedAnnotations.from(AnnotatedElement element, MergedAnnotations.SearchStrategy searchStrategy, RepeatableContainers repeatableContainers) Create a newMergedAnnotationsinstance containing all annotations and meta-annotations from the specified element and, depending on theMergedAnnotations.SearchStrategy, related inherited elements.static MergedAnnotationsMergedAnnotations.from(AnnotatedElement element, MergedAnnotations.SearchStrategy searchStrategy, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter) Create a newMergedAnnotationsinstance containing all annotations and meta-annotations from the specified element and, depending on theMergedAnnotations.SearchStrategy, related inherited elements.MergedAnnotations.Search.withRepeatableContainers(RepeatableContainers repeatableContainers) Configure theRepeatableContainersto use.