Package org.springframework.data.util
Class TypeContributor
java.lang.Object
org.springframework.data.util.TypeContributor
- Since:
- 3.0
- Author:
- Christoph Strobl
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final BindingReflectionHintsRegistrar -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcontribute(Class<?> type, Predicate<Class<? extends Annotation>> filter, GenerationContext contribution) Contribute the type with default reflection configuration and only include matching annotations.static voidcontribute(Class<?> type, Set<String> annotationNamespaces, GenerationContext contribution) Contribute the type with default reflection configuration and only include annotations from a certain namespace and those meta annotated with one of them.static voidcontribute(Class<?> type, GenerationContext contribution) Contribute the type with default reflection configuration, skip annotations.static booleanstatic booleanisPartOfOrMetaAnnotatedWith(Class<? extends Annotation> annotation, Set<String> namespaces)
-
Field Details
-
DATA_NAMESPACE
- See Also:
-
REGISTRAR
-
-
Constructor Details
-
TypeContributor
public TypeContributor()
-
-
Method Details
-
contribute
Contribute the type with default reflection configuration, skip annotations.- Parameters:
type-contribution-
-
contribute
public static void contribute(Class<?> type, Predicate<Class<? extends Annotation>> filter, GenerationContext contribution) Contribute the type with default reflection configuration and only include matching annotations.- Parameters:
type-filter-contribution-
-
contribute
public static void contribute(Class<?> type, Set<String> annotationNamespaces, GenerationContext contribution) Contribute the type with default reflection configuration and only include annotations from a certain namespace and those meta annotated with one of them.- Parameters:
type-annotationNamespaces-contribution-
-
isPartOf
-
isPartOfOrMetaAnnotatedWith
public static boolean isPartOfOrMetaAnnotatedWith(Class<? extends Annotation> annotation, Set<String> namespaces)
-