Package | Description |
---|---|
org.springframework.core.annotation |
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides.
|
Modifier and Type | Method and Description |
---|---|
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 a
RepeatableContainers instance that does not expand any
repeatable annotations. |
static RepeatableContainers |
RepeatableContainers.of(Class<? extends Annotation> repeatable,
Class<? extends Annotation> container)
Create a
RepeatableContainers instance that uses predefined
repeatable and container types. |
static RepeatableContainers |
RepeatableContainers.standardRepeatables()
Create a
RepeatableContainers instance that searches using Java's
@Repeatable annotation. |
Modifier and Type | Method and Description |
---|---|
static MergedAnnotations |
MergedAnnotations.from(AnnotatedElement element,
MergedAnnotations.SearchStrategy searchStrategy,
RepeatableContainers repeatableContainers)
Create a new
MergedAnnotations instance containing all
annotations and meta-annotations from the specified element and,
depending on the MergedAnnotations.SearchStrategy , related inherited elements. |
static MergedAnnotations |
MergedAnnotations.from(AnnotatedElement element,
MergedAnnotations.SearchStrategy searchStrategy,
RepeatableContainers repeatableContainers,
AnnotationFilter annotationFilter)
Create a new
MergedAnnotations instance containing all
annotations and meta-annotations from the specified element and,
depending on the MergedAnnotations.SearchStrategy , related inherited elements. |
static MergedAnnotations |
MergedAnnotations.from(Object source,
Annotation[] annotations,
RepeatableContainers repeatableContainers)
Create a new
MergedAnnotations instance from the specified
annotations. |
static MergedAnnotations |
MergedAnnotations.from(Object source,
Annotation[] annotations,
RepeatableContainers repeatableContainers,
AnnotationFilter annotationFilter)
Create a new
MergedAnnotations instance from the specified
annotations. |