Uses of Interface
org.springframework.core.annotation.MergedAnnotation
Packages that use MergedAnnotation
Package
Description
Support package for annotation-driven bean configuration.
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides.
Core support package for type introspection.
-
Uses of MergedAnnotation in org.springframework.beans.factory.annotation
Methods in org.springframework.beans.factory.annotation with parameters of type MergedAnnotationModifier and TypeMethodDescriptionprotected booleanAutowiredAnnotationBeanPostProcessor.determineRequiredStatus(MergedAnnotation<?> ann) Determine if the annotated field or method requires its dependency. -
Uses of MergedAnnotation in org.springframework.core.annotation
Subinterfaces with type arguments of type MergedAnnotation in org.springframework.core.annotationModifier and TypeInterfaceDescriptioninterfaceMethods in org.springframework.core.annotation that return MergedAnnotationModifier and TypeMethodDescriptionMergedAnnotation.filterAttributes(Predicate<String> predicate) Create a new view of the annotation with only attributes that match the given predicate.MergedAnnotation.filterDefaultValues()Create a new view of the annotation with all attributes that have default values removed.static <A extends Annotation>
MergedAnnotation<A> MergedAnnotation.from(A annotation) Create a newMergedAnnotationinstance from the specified annotation.static <A extends Annotation>
MergedAnnotation<A> Create a newMergedAnnotationinstance from the specified annotation.<A extends Annotation>
MergedAnnotation<A> Get the nearest matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()if none is present.<A extends Annotation>
MergedAnnotation<A> MergedAnnotations.get(Class<A> annotationType, @Nullable Predicate<? super MergedAnnotation<A>> predicate) Get the nearest matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()if none is present.<A extends Annotation>
MergedAnnotation<A> MergedAnnotations.get(Class<A> annotationType, @Nullable Predicate<? super MergedAnnotation<A>> predicate, @Nullable MergedAnnotationSelector<A> selector) Get a matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()if none is present.<A extends Annotation>
MergedAnnotation<A> Get the nearest matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()if none is present.<A extends Annotation>
MergedAnnotation<A> MergedAnnotations.get(String annotationType, @Nullable Predicate<? super MergedAnnotation<A>> predicate) Get the nearest matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()if none is present.<A extends Annotation>
MergedAnnotation<A> MergedAnnotations.get(String annotationType, @Nullable Predicate<? super MergedAnnotation<A>> predicate, @Nullable MergedAnnotationSelector<A> selector) Get a matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()if none is present.<T extends Annotation>
MergedAnnotation<T> MergedAnnotation.getAnnotation(String attributeName, Class<T> type) Get a required annotation attribute value from the annotation.<T extends Annotation>
MergedAnnotation<T>[]MergedAnnotation.getAnnotationArray(String attributeName, Class<T> type) Get a required annotation array attribute value from the annotation.MergedAnnotation.getMetaSource()Get the source of the meta-annotation, ornullif the annotation is not meta-present.MergedAnnotation.getRoot()Get the root annotation, i.e.static <A extends Annotation>
MergedAnnotation<A> MergedAnnotation.missing()Create aMergedAnnotationthat represents a missing annotation (i.e.static <A extends Annotation>
MergedAnnotation<A> MergedAnnotation.of(@Nullable ClassLoader classLoader, @Nullable Object source, Class<A> annotationType, @Nullable Map<String, ?> attributes) Create a newMergedAnnotationinstance of the specified annotation type with attribute values supplied by a map.static <A extends Annotation>
MergedAnnotation<A> Create a newMergedAnnotationinstance of the specified annotation type.static <A extends Annotation>
MergedAnnotation<A> Create a newMergedAnnotationinstance of the specified annotation type with attribute values supplied by a map.static <A extends Annotation>
MergedAnnotation<A> MergedAnnotation.of(@Nullable AnnotatedElement source, Class<A> annotationType, @Nullable Map<String, ?> attributes) Create a newMergedAnnotationinstance of the specified annotation type with attribute values supplied by a map.MergedAnnotationSelector.select(MergedAnnotation<A> existing, MergedAnnotation<A> candidate) Select the annotation that should be used.MergedAnnotation.withNonMergedAttributes()Create a new view of the annotation that exposes non-merged attribute values.Methods in org.springframework.core.annotation that return types with arguments of type MergedAnnotationModifier and TypeMethodDescriptionstatic <A extends Annotation>
Predicate<MergedAnnotation<A>> MergedAnnotationPredicates.firstRunOf(Function<? super MergedAnnotation<A>, ?> valueExtractor) Create a new stateful, single usePredicatethat matches only the first run of an extracted value.MergedAnnotations.stream()Stream all annotations and meta-annotations contained in this collection.<A extends Annotation>
Stream<MergedAnnotation<A>> Stream all annotations and meta-annotations that match the specified type.<A extends Annotation>
Stream<MergedAnnotation<A>> Stream all annotations and meta-annotations that match the specified type.static <A extends Annotation>
Collector<MergedAnnotation<A>, ?, Annotation[]> MergedAnnotationCollectors.toAnnotationArray()Create a newCollectorthat accumulates merged annotations to anAnnotationarray containing synthesized versions.static <R extends Annotation, A extends R>
Collector<MergedAnnotation<A>, ?, R[]> MergedAnnotationCollectors.toAnnotationArray(IntFunction<R[]> generator) Create a newCollectorthat accumulates merged annotations to anAnnotationarray containing synthesized versions.static <A extends Annotation>
Collector<MergedAnnotation<A>, ?, Set<A>> MergedAnnotationCollectors.toAnnotationSet()Create a newCollectorthat accumulates merged annotations to aLinkedHashSetcontaining synthesized versions.static <A extends Annotation>
Collector<MergedAnnotation<A>, ? extends @Nullable Object, @Nullable MultiValueMap<String, @Nullable Object>> MergedAnnotationCollectors.toMultiValueMap(Function<MultiValueMap<String, @Nullable Object>, @Nullable MultiValueMap<String, @Nullable Object>> finisher, MergedAnnotation.Adapt... adaptations) Create a newCollectorthat accumulates merged annotations to aMultiValueMapwith items added from each merged annotation as a map.static <A extends Annotation>
Collector<MergedAnnotation<A>, ? extends @Nullable Object, @Nullable MultiValueMap<String, @Nullable Object>> MergedAnnotationCollectors.toMultiValueMap(MergedAnnotation.Adapt... adaptations) Create a newCollectorthat accumulates merged annotations to aMultiValueMapwith items added from each merged annotation as a map.static <A extends Annotation>
Predicate<MergedAnnotation<? extends A>> Create a newPredicatethat evaluates totrueif the merged annotation type is contained in the specified array.static <A extends Annotation>
Predicate<MergedAnnotation<? extends A>> Create a newPredicatethat evaluates totrueif the name of the merged annotation type is contained in the specified array.static <A extends Annotation>
Predicate<MergedAnnotation<? extends A>> MergedAnnotationPredicates.typeIn(Collection<?> types) Create a newPredicatethat evaluates totrueif the merged annotation type is contained in the specified collection.static <A extends Annotation, K>
Predicate<MergedAnnotation<A>> MergedAnnotationPredicates.unique(Function<? super MergedAnnotation<A>, K> keyExtractor) Create a new stateful, single usePredicatethat matches annotations that are unique based on the extracted key.Methods in org.springframework.core.annotation with parameters of type MergedAnnotationModifier and TypeMethodDescriptiondefault booleanMergedAnnotationSelector.isBestCandidate(MergedAnnotation<A> annotation) Determine if the existing annotation is known to be the best candidate and any subsequent selections may be skipped.MergedAnnotationSelector.select(MergedAnnotation<A> existing, MergedAnnotation<A> candidate) Select the annotation that should be used.Method parameters in org.springframework.core.annotation with type arguments of type MergedAnnotationModifier and TypeMethodDescriptionMergedAnnotation.asMap(Function<MergedAnnotation<?>, T> factory, MergedAnnotation.Adapt... adaptations) Create a newMapinstance of the given type that contains all the annotation attributes.static <A extends Annotation>
Predicate<MergedAnnotation<A>> MergedAnnotationPredicates.firstRunOf(Function<? super MergedAnnotation<A>, ?> valueExtractor) Create a new stateful, single usePredicatethat matches only the first run of an extracted value.<A extends Annotation>
MergedAnnotation<A> MergedAnnotations.get(Class<A> annotationType, @Nullable Predicate<? super MergedAnnotation<A>> predicate) Get the nearest matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()if none is present.<A extends Annotation>
MergedAnnotation<A> MergedAnnotations.get(Class<A> annotationType, @Nullable Predicate<? super MergedAnnotation<A>> predicate, @Nullable MergedAnnotationSelector<A> selector) Get a matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()if none is present.<A extends Annotation>
MergedAnnotation<A> MergedAnnotations.get(String annotationType, @Nullable Predicate<? super MergedAnnotation<A>> predicate) Get the nearest matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()if none is present.<A extends Annotation>
MergedAnnotation<A> MergedAnnotations.get(String annotationType, @Nullable Predicate<? super MergedAnnotation<A>> predicate, @Nullable MergedAnnotationSelector<A> selector) Get a matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()if none is present.static MergedAnnotationsMergedAnnotations.of(Collection<MergedAnnotation<?>> annotations) Create a newMergedAnnotationsinstance from the specified collection of directly present annotations.MergedAnnotation.synthesize(Predicate<? super MergedAnnotation<A>> condition) Optionally create a type-safe synthesized version of this annotation based on a condition predicate.static <A extends Annotation, K>
Predicate<MergedAnnotation<A>> MergedAnnotationPredicates.unique(Function<? super MergedAnnotation<A>, K> keyExtractor) Create a new stateful, single usePredicatethat matches annotations that are unique based on the extracted key. -
Uses of MergedAnnotation in org.springframework.core.type
Method parameters in org.springframework.core.type with type arguments of type MergedAnnotationModifier and TypeMethodDescriptiondefault Set<AnnotationAttributes> AnnotatedTypeMetadata.getMergedRepeatableAnnotationAttributes(Class<? extends Annotation> annotationType, Class<? extends Annotation> containerType, Predicate<MergedAnnotation<? extends Annotation>> predicate, boolean classValuesAsString, boolean sortByReversedMetaDistance) Retrieve all repeatable annotations of the given type within the annotation hierarchy above the underlying element (as direct annotation or meta-annotation); and for each annotation found, merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy and store the results in an instance ofAnnotationAttributes.