Class TypeContributor

java.lang.Object
org.springframework.data.util.TypeContributor

public class TypeContributor extends Object
Since:
3.0
Author:
Christoph Strobl
  • Field Details

  • Constructor Details

    • TypeContributor

      public TypeContributor()
  • Method Details

    • contribute

      public static void contribute(Class<?> type, GenerationContext contribution)
      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

      public static boolean isPartOf(Class<?> type, Set<String> namespaces)
    • isPartOfOrMetaAnnotatedWith

      public static boolean isPartOfOrMetaAnnotatedWith(Class<? extends Annotation> annotation, Set<String> namespaces)