public final class FindAnnotation extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
findAnnotation(Annotation[] searchList,
Class<T> annotation)
Finds annotation.
|
static <T extends Annotation> |
findAnnotation(Class<?> type,
Annotation[] annotations,
Class<T> annotation)
Look for an annotation in a list of annotations.
|
static Class<? extends Annotation>[] |
findJaxRSAnnotations(Annotation[] searchList) |
static Class<? extends Annotation>[] |
findJsonBindingAnnotations(Annotation[] searchList)
Deprecated.
|
static Annotation[] |
getResourcesAnnotations(Method method)
Returns an array of annotations the specified method of
a resource class.
|
static boolean |
hasJsonBindingAnnotations(Annotation[] searchList) |
public static <T> T findAnnotation(Annotation[] searchList, Class<T> annotation)
T
- typesearchList
- array of annotationsannotation
- expected annotation classpublic static Class<? extends Annotation>[] findJaxRSAnnotations(Annotation[] searchList)
public static boolean hasJsonBindingAnnotations(Annotation[] searchList)
@Deprecated public static Class<? extends Annotation>[] findJsonBindingAnnotations(Annotation[] searchList)
public static Annotation[] getResourcesAnnotations(Method method)
method
- methodpublic static <T extends Annotation> T findAnnotation(Class<?> type, Annotation[] annotations, Class<T> annotation)
T
- typetype
- type classannotations
- array of annotationsannotation
- expected annotationCopyright © 2019 JBoss by Red Hat. All rights reserved.