类的使用
org.springframework.core.annotation.RepeatableContainers
使用RepeatableContainers的程序包 程序包 说明 org.springframework.core.annotation Core support package for annotations, meta-annotations, and merged annotations with attribute overrides.org.springframework.core.annotation中RepeatableContainers的使用
返回RepeatableContainers的org.springframework.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 RepeatableContainers
RepeatableContainers. none()
Create aRepeatableContainers
instance that does not expand any repeatable annotations.static RepeatableContainers
RepeatableContainers. of(Class<? extends Annotation> repeatable, Class<? extends Annotation> container)
Create aRepeatableContainers
instance that uses a defined container and repeatable type.static RepeatableContainers
RepeatableContainers. standardRepeatables()
Create aRepeatableContainers
instance that searches using Java's@Repeatable
annotation.参数类型为RepeatableContainers的org.springframework.core.annotation中的方法 修饰符和类型 方法 说明 static MergedAnnotations
MergedAnnotations. from(Object source, Annotation[] annotations, RepeatableContainers repeatableContainers)
Create a newMergedAnnotations
instance from the specified annotations.static MergedAnnotations
MergedAnnotations. from(Object source, Annotation[] annotations, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter)
Create a newMergedAnnotations
instance from the specified annotations.static MergedAnnotations
MergedAnnotations. from(AnnotatedElement element, MergedAnnotations.SearchStrategy searchStrategy, RepeatableContainers repeatableContainers)
Create a newMergedAnnotations
instance containing all annotations and meta-annotations from the specified element and, depending on theMergedAnnotations.SearchStrategy
, related inherited elements.static MergedAnnotations
MergedAnnotations. from(AnnotatedElement element, MergedAnnotations.SearchStrategy searchStrategy, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter)
Create a newMergedAnnotations
instance containing all annotations and meta-annotations from the specified element and, depending on theMergedAnnotations.SearchStrategy
, related inherited elements.