Class TypeUtils

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

public class TypeUtils extends Object
Author:
Christoph Strobl
  • Field Details

    • TRANSACTION_MANAGER_CLASS_NAME

      public static String TRANSACTION_MANAGER_CLASS_NAME
  • Constructor Details

    • TypeUtils

      public TypeUtils()
  • Method Details

    • resolveUsedAnnotations

      public static Set<org.springframework.core.annotation.MergedAnnotation<Annotation>> resolveUsedAnnotations(Class<?> type)
      Resolve ALL annotations present for a given type. Will inspect type, constructors, parameters, methods, fields,...
      Parameters:
      type -
      Returns:
      never null.
    • resolveAnnotationsFor

      public static Stream<org.springframework.core.annotation.MergedAnnotation<Annotation>> resolveAnnotationsFor(AnnotatedElement element)
    • resolveAnnotationsFor

      public static Stream<org.springframework.core.annotation.MergedAnnotation<Annotation>> resolveAnnotationsFor(AnnotatedElement element, org.springframework.core.annotation.AnnotationFilter filter)
    • resolveAnnotationTypesFor

      public static Collection<Class<Annotation>> resolveAnnotationTypesFor(AnnotatedElement element, org.springframework.core.annotation.AnnotationFilter filter)
    • resolveAnnotationTypesFor

      public static Collection<Class<Annotation>> resolveAnnotationTypesFor(AnnotatedElement element)
    • isAnnotationFromOrMetaAnnotated

      public static boolean isAnnotationFromOrMetaAnnotated(Class<? extends Annotation> annotation, String prefix)
    • hasAnnotatedField

      public static boolean hasAnnotatedField(Class<?> type, String annotationName)
    • getAnnotatedField

      public static Set<Field> getAnnotatedField(Class<?> type, String annotationName)
    • resolveTypesInSignature

      public static Set<Class<?>> resolveTypesInSignature(Class<?> owner, Method method)
    • resolveTypesInSignature

      public static Set<Class<?>> resolveTypesInSignature(Class<?> owner, Constructor<?> constructor)
    • resolveTypesInSignature

      public static Set<Class<?>> resolveTypesInSignature(Class<?> root)
    • resolveTypesInSignature

      public static Set<Class<?>> resolveTypesInSignature(org.springframework.core.ResolvableType root)
    • type

      public static TypeUtils.TypeOps type(Class<?> type)