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<MergedAnnotation<Annotation>>
resolveAnnotationsFor
(AnnotatedElement element) static Stream<MergedAnnotation<Annotation>>
resolveAnnotationsFor
(AnnotatedElement element, AnnotationFilter filter) static Collection<Class<Annotation>>
static Collection<Class<Annotation>>
resolveAnnotationTypesFor
(AnnotatedElement element, AnnotationFilter filter) resolveTypesInSignature
(Class<?> root) resolveTypesInSignature
(Class<?> owner, Constructor<?> constructor) resolveTypesInSignature
(Class<?> owner, Method method) static Set<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
Resolve ALL annotations present for a given type. Will inspect type, constructors, parameters, methods, fields,...- Parameters:
type
-- Returns:
- never null.
-
resolveAnnotationsFor
-
resolveAnnotationsFor
public static Stream<MergedAnnotation<Annotation>> resolveAnnotationsFor(AnnotatedElement element, AnnotationFilter filter) -
resolveAnnotationTypesFor
public static Collection<Class<Annotation>> resolveAnnotationTypesFor(AnnotatedElement element, AnnotationFilter filter) -
resolveAnnotationTypesFor
-
isAnnotationFromOrMetaAnnotated
public static boolean isAnnotationFromOrMetaAnnotated(Class<? extends Annotation> annotation, String prefix) -
hasAnnotatedField
-
getAnnotatedField
-
resolveTypesInSignature
-
resolveTypesInSignature
-
resolveTypesInSignature
-
resolveTypesInSignature
-
type
-