Package org.springframework.data.util
Class TypeUtils
java.lang.Object
org.springframework.data.util.TypeUtils
- Author:
- Christoph Strobl
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAnnotatedField
(Class<?> type, String annotationName) static boolean
hasAnnotatedField
(Class<?> type, String annotationName) static boolean
isAnnotationFromOrMetaAnnotated
(Class<? extends Annotation> annotation, String prefix) static Stream<org.springframework.core.annotation.MergedAnnotation<Annotation>>
resolveAnnotationsFor
(AnnotatedElement element) static Stream<org.springframework.core.annotation.MergedAnnotation<Annotation>>
resolveAnnotationsFor
(AnnotatedElement element, org.springframework.core.annotation.AnnotationFilter filter) static Collection<Class<Annotation>>
static Collection<Class<Annotation>>
resolveAnnotationTypesFor
(AnnotatedElement element, org.springframework.core.annotation.AnnotationFilter filter) resolveTypesInSignature
(Class<?> root) resolveTypesInSignature
(Class<?> owner, Constructor<?> constructor) resolveTypesInSignature
(Class<?> owner, Method method) resolveTypesInSignature
(org.springframework.core.ResolvableType root) static Set<org.springframework.core.annotation.MergedAnnotation<Annotation>>
resolveUsedAnnotations
(Class<?> type) Resolve ALL annotations present for a given type.static TypeUtils.TypeOps
-
Field Details
-
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
-
isAnnotationFromOrMetaAnnotated
public static boolean isAnnotationFromOrMetaAnnotated(Class<? extends Annotation> annotation, String prefix) -
hasAnnotatedField
-
getAnnotatedField
-
resolveTypesInSignature
-
resolveTypesInSignature
-
resolveTypesInSignature
-
resolveTypesInSignature
-
type
-