Apache CXF API

org.apache.cxf.jaxrs.utils
Class AnnotationUtils

java.lang.Object
  extended by org.apache.cxf.jaxrs.utils.AnnotationUtils

public final class AnnotationUtils
extends Object


Method Summary
static Method getAnnotatedMethod(Method m)
           
static
<T> T
getAnnotation(Annotation[] anns, Class<T> type)
           
static String getAnnotationValue(Annotation a)
           
static int getBindingPriority(Class<?> providerCls)
           
static
<A extends Annotation>
A
getClassAnnotation(Class<?> c, Class<A> aClass)
           
static String getDefaultParameterValue(Annotation[] anns)
           
static String getHttpMethodValue(Method m)
           
static
<A extends Annotation>
A
getMethodAnnotation(Method m, Class<A> aClass)
           
static Set<String> getNameBindings(Annotation[] targetAnns)
           
static boolean isMethodAnnotation(Annotation a)
           
static boolean isParamAnnotationClass(Class<?> annotationClass)
           
static boolean isValidParamAnnotationClass(Class<?> annotationClass)
           
static boolean isValidParamAnnotations(Annotation[] paramAnnotations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBindingPriority

public static int getBindingPriority(Class<?> providerCls)

getNameBindings

public static Set<String> getNameBindings(Annotation[] targetAnns)

isParamAnnotationClass

public static boolean isParamAnnotationClass(Class<?> annotationClass)

isValidParamAnnotationClass

public static boolean isValidParamAnnotationClass(Class<?> annotationClass)

isValidParamAnnotations

public static boolean isValidParamAnnotations(Annotation[] paramAnnotations)

isMethodAnnotation

public static boolean isMethodAnnotation(Annotation a)

getAnnotationValue

public static String getAnnotationValue(Annotation a)

getAnnotation

public static <T> T getAnnotation(Annotation[] anns,
                                  Class<T> type)

getAnnotatedMethod

public static Method getAnnotatedMethod(Method m)

getHttpMethodValue

public static String getHttpMethodValue(Method m)

getMethodAnnotation

public static <A extends Annotation> A getMethodAnnotation(Method m,
                                                           Class<A> aClass)

getClassAnnotation

public static <A extends Annotation> A getClassAnnotation(Class<?> c,
                                                          Class<A> aClass)

getDefaultParameterValue

public static String getDefaultParameterValue(Annotation[] anns)

Apache CXF API

Apache CXF