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 |
---|---|
static <A extends Annotation> |
MergedAnnotationSelectors.firstDirectlyDeclared()
Select the first directly declared annotation when possible.
|
static <A extends Annotation> |
MergedAnnotationSelectors.nearest()
Select the nearest annotation, i.e.
|
Modifier and Type | Method and Description |
---|---|
<A extends Annotation> |
MergedAnnotations.get(Class<A> annotationType,
Predicate<? super MergedAnnotation<A>> predicate,
MergedAnnotationSelector<A> selector)
Get a matching annotation or meta-annotation of the specified type, or
MergedAnnotation.missing() if none is present. |
<A extends Annotation> |
MergedAnnotations.get(String annotationType,
Predicate<? super MergedAnnotation<A>> predicate,
MergedAnnotationSelector<A> selector)
Get a matching annotation or meta-annotation of the specified type, or
MergedAnnotation.missing() if none is present. |