Package | Description |
---|---|
org.springframework.core.annotation |
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides.
|
Modifier and Type | Field and Description |
---|---|
static AnnotationFilter |
AnnotationFilter.ALL
AnnotationFilter that always matches and can be used when no
relevant annotation types are expected to be present at all. |
static AnnotationFilter |
AnnotationFilter.JAVA
|
static AnnotationFilter |
AnnotationFilter.NONE
Deprecated.
as of 5.2.6 since the
MergedAnnotations model
always ignores lang annotations according to the PLAIN filter
(for efficiency reasons) |
static AnnotationFilter |
AnnotationFilter.PLAIN
AnnotationFilter that matches annotations in the
java.lang and org.springframework.lang packages
and their subpackages. |
Modifier and Type | Method and Description |
---|---|
static AnnotationFilter |
AnnotationFilter.packages(String... packages)
Create a new
AnnotationFilter that matches annotations in the
specified packages. |
Modifier and Type | Method and Description |
---|---|
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,
AnnotationFilter annotationFilter)
Create a new
MergedAnnotations instance from the specified
annotations. |