Class ReflectionUtil


  • public class ReflectionUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ReflectionUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <D> java.lang.Object callMethod​(D instance, java.lang.reflect.Method method, java.lang.Object[] arguments)  
      static <T> T createInstance​(java.lang.Class<?> clazz)  
      static <T> T createInstance​(java.lang.String clazz)  
      • Methods inherited from class java.lang.Object

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

      • ReflectionUtil

        public ReflectionUtil()
    • Method Detail

      • createInstance

        public static <T> T createInstance​(java.lang.Class<?> clazz)
      • createInstance

        public static <T> T createInstance​(java.lang.String clazz)
      • callMethod

        public static <D> java.lang.Object callMethod​(D instance,
                                                      java.lang.reflect.Method method,
                                                      java.lang.Object[] arguments)
                                               throws java.lang.reflect.InvocationTargetException,
                                                      java.lang.IllegalAccessException
        Throws:
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException