public final class FindAnnotation extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
findAnnotation(Annotation[] searchList,
Class<T> annotation)
FIXME Comment this
|
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
- searchList
- annotation
- public static Class<? extends Annotation>[] findJaxRSAnnotations(Annotation[] searchList)
public static Annotation[] getResourcesAnnotations(Method method)
method
- public static <T extends Annotation> T findAnnotation(Class<?> type, Annotation[] annotations, Class<T> annotation)
type
- annotations
- annnotation
- Copyright © 2017 JBoss by Red Hat. All rights reserved.