Class FindAnnotation


  • public final class FindAnnotation
    extends java.lang.Object
    Version:
    $Revision: 1 $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.Class[] findJaxRSAnnotations_TYPE  
      private static java.lang.Class<? extends java.lang.annotation.Annotation>[] JAXRS_ANNOTATIONS  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FindAnnotation()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T findAnnotation​(java.lang.annotation.Annotation[] searchList, java.lang.Class<T> annotation)
      FIXME Comment this
      static <T extends java.lang.annotation.Annotation>
      T
      findAnnotation​(java.lang.Class<?> type, java.lang.annotation.Annotation[] annotations, java.lang.Class<T> annotation)
      Look for an annotation in a list of annotations.
      static java.lang.Class<? extends java.lang.annotation.Annotation>[] findJaxRSAnnotations​(java.lang.annotation.Annotation[] searchList)  
      static java.lang.annotation.Annotation[] getResourcesAnnotations​(java.lang.reflect.Method method)
      Returns an array of annotations the specified method of a resource class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • JAXRS_ANNOTATIONS

        private static final java.lang.Class<? extends java.lang.annotation.Annotation>[] JAXRS_ANNOTATIONS
      • findJaxRSAnnotations_TYPE

        private static final java.lang.Class[] findJaxRSAnnotations_TYPE
    • Constructor Detail

      • FindAnnotation

        private FindAnnotation()
    • Method Detail

      • findAnnotation

        public static <T> T findAnnotation​(java.lang.annotation.Annotation[] searchList,
                                           java.lang.Class<T> annotation)
        FIXME Comment this
        Type Parameters:
        T -
        Parameters:
        searchList -
        annotation -
        Returns:
      • findJaxRSAnnotations

        public static java.lang.Class<? extends java.lang.annotation.Annotation>[] findJaxRSAnnotations​(java.lang.annotation.Annotation[] searchList)
      • getResourcesAnnotations

        public static java.lang.annotation.Annotation[] getResourcesAnnotations​(java.lang.reflect.Method method)
        Returns an array of annotations the specified method of a resource class.
        Parameters:
        method -
        Returns:
      • findAnnotation

        public static <T extends java.lang.annotation.Annotation> T findAnnotation​(java.lang.Class<?> type,
                                                                                   java.lang.annotation.Annotation[] annotations,
                                                                                   java.lang.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: