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 String
static final BindingReflectionHintsRegistrar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
contribute
(Class<?> type, Predicate<Class<? extends Annotation>> filter, GenerationContext contribution) Contribute the type with default reflection configuration and only include matching annotations.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.static void
contribute
(Class<?> type, GenerationContext contribution) Contribute the type with default reflection configuration, skip annotations.static boolean
static boolean
isPartOfOrMetaAnnotatedWith
(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)
-