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 Annotation[] |
getResourcesAnnotations(Method method)
Returns an array of annotations the specified method of
a resource class.
|
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 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 © 2020 JBoss by Red Hat. All rights reserved.