Class AnnotationResolver
- java.lang.Object
-
- io.streamthoughts.azkarra.api.util.AnnotationResolver
-
public class AnnotationResolver extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AnnotationResolver.AnnotationFilter
static class
AnnotationResolver.PackageAnnotationFilter
static class
AnnotationResolver.TypeAnnotationFilter
-
Constructor Summary
Constructors Constructor Description AnnotationResolver()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Annotation>
findAllAnnotations(Class<?> cls)
static <T extends Annotation>
List<T>findAllAnnotationsByType(Class<?> cls, Class<T> annotationType)
static <T extends Annotation>
List<T>findAllAnnotationsByType(Method method, Class<T> annotationType)
static <A extends Annotation>
booleanisAnnotatedWith(Class<?> component, Class<A> annotation)
static <A extends Annotation>
booleanisAnnotatedWith(Method method, Class<A> annotation)
static boolean
isAnnotationContainer(Class<? extends Annotation> annotationType)
static boolean
isAnnotationOfType(Annotation annotation, Class<?> type)
-
-
-
Method Detail
-
isAnnotationOfType
public static boolean isAnnotationOfType(Annotation annotation, Class<?> type)
-
isAnnotationContainer
public static boolean isAnnotationContainer(Class<? extends Annotation> annotationType)
-
findAllAnnotations
public static List<Annotation> findAllAnnotations(Class<?> cls)
-
findAllAnnotationsByType
public static <T extends Annotation> List<T> findAllAnnotationsByType(Method method, Class<T> annotationType)
-
findAllAnnotationsByType
public static <T extends Annotation> List<T> findAllAnnotationsByType(Class<?> cls, Class<T> annotationType)
-
isAnnotatedWith
public static <A extends Annotation> boolean isAnnotatedWith(Method method, Class<A> annotation)
-
isAnnotatedWith
public static <A extends Annotation> boolean isAnnotatedWith(Class<?> component, Class<A> annotation)
-
-