jaxrs/src/main/java/de/taimos/dvalin/jaxrs/JaxRsAnnotationScanner.java
/**
     * Searches for all annotations of the given type on this method or on type level for all interfaces and superclasses
     *
     * @param method     the method to scan
     * @param annotation the annotation to search for
     * @param <T>        the type of the annotation
     * @return the list of all method or type level annotations in the type hierarchy
     */
Searches for all annotations of the given type on this method or on type level for all interfaces and superclasses
@param method     the method to scan
@param annotation the annotation to search for
@param         the type of the annotation
@return the list of all method or type level annotations in the type hierarchy
Searches for all annotations of the given type on this method or on type level for all interfaces and superclasses @param method the method to scan @param annotation the annotation to search for @param the type of the annotation @return the list of all method or type level annotations in the type hierarchy
public static <T extends Annotation> List<T> searchForAnnotation(Method method, Class<T> annotation) {
        if (method == null) {
            return Lists.newArrayList();
        }
        return searchClasses(method, annotation, method.getDeclaringClass());
    }
public static < T extends Annotation > List < T > searchForAnnotation ( Method method , Class < T > annotation ) { if ( method == null ) { return Lists . newArrayList ( ) ; } return searchClasses ( method , annotation , method . getDeclaringClass ( ) ) ; }
Searches for all annotations of the given type on this method or on type level for all interfaces and superclasses
 @param method     the method to scan
 @param annotation the annotation to search for
 @param <T>        the type of the annotation
 @return the list of all method or type level annotations in the type hierarchy
Searches for all annotations of the given type on this method or on type level for all interfaces and superclasses @param method the method to scan @param annotation the annotation to search for @param <T > the type of the annotation @return the list of all method or type level annotations in the type hierarchy