Package org.jboss.resteasy.util
Class FindAnnotation
java.lang.Object
org.jboss.resteasy.util.FindAnnotation
- Version:
- $Revision: 1 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Class[]
private static final Class<? extends Annotation>[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
findAnnotation
(Annotation[] searchList, Class<T> annotation) FIXME Comment thisstatic <T extends Annotation>
TfindAnnotation
(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.
-
Field Details
-
JAXRS_ANNOTATIONS
-
findJaxRSAnnotations_TYPE
-
-
Constructor Details
-
FindAnnotation
private FindAnnotation()
-
-
Method Details
-
findAnnotation
FIXME Comment this- Type Parameters:
T
-- Parameters:
searchList
-annotation
-- Returns:
-
findJaxRSAnnotations
-
getResourcesAnnotations
Returns an array of annotations the specified method of a resource class.- Parameters:
method
-- Returns:
-
findAnnotation
public static <T extends Annotation> T findAnnotation(Class<?> type, Annotation[] annotations, Class<T> annotation) Look for an annotation in a list of annotations. If not there, see if it is on the type provided- Parameters:
type
-annotations
-annnotation
-- Returns:
-