Class TypeContributor

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

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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final org.springframework.aot.hint.BindingReflectionHintsRegistrar
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    contribute(Class<?> type, Predicate<Class<? extends Annotation>> filter, org.springframework.aot.generate.GenerationContext contribution)
    Contribute the type with default reflection configuration and only include matching annotations.
    static void
    contribute(Class<?> type, Set<String> annotationNamespaces, org.springframework.aot.generate.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, org.springframework.aot.generate.GenerationContext contribution)
    Contribute the type with default reflection configuration, skip annotations.
    static boolean
    isPartOf(Class<?> type, Set<String> namespaces)
     
    static boolean
    isPartOfOrMetaAnnotatedWith(Class<? extends Annotation> annotation, Set<String> namespaces)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DATA_NAMESPACE

      public static final String DATA_NAMESPACE
      See Also:
    • REGISTRAR

      public static final org.springframework.aot.hint.BindingReflectionHintsRegistrar REGISTRAR
  • Constructor Details

    • TypeContributor

      public TypeContributor()
  • Method Details

    • contribute

      public static void contribute(Class<?> type, org.springframework.aot.generate.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, org.springframework.aot.generate.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, org.springframework.aot.generate.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)