Class ReflectionUtils


  • public final class ReflectionUtils
    extends java.lang.Object
    Utilities for reflection required by this library, since all handlers are called reflectively
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends java.lang.annotation.Annotation>
      java.util.List<java.util.Map.Entry<java.lang.reflect.Method,​T>>
      getMethodsAnnotatedWith​(java.lang.Class<?> type, java.lang.Class<T> annotation)
      Runs through passed type to find methods annotated with annotation
      • Methods inherited from class java.lang.Object

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

      • getMethodsAnnotatedWith

        public static <T extends java.lang.annotation.Annotation> java.util.List<java.util.Map.Entry<java.lang.reflect.Method,​T>> getMethodsAnnotatedWith​(java.lang.Class<?> type,
                                                                                                                                                                java.lang.Class<T> annotation)
        Runs through passed type to find methods annotated with annotation
        Type Parameters:
        T - type of annotation
        Parameters:
        type - type to run through
        annotation - annotation to look for
        Returns:
        list of method and annotation pairs