Class MethodInvoker

    • Constructor Summary

      Constructors 
      Constructor Description
      MethodInvoker​(java.lang.reflect.Method method)  
    • Method Summary

      Modifier and Type Method Description
      java.lang.Class<?> getType()  
      java.lang.Object invoke​(java.lang.Object target, java.lang.Object[] args)  
      • Methods inherited from class java.lang.Object

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

      • MethodInvoker

        public MethodInvoker​(java.lang.reflect.Method method)
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.Object target,
                                       java.lang.Object[] args)
                                throws java.lang.IllegalAccessException,
                                       java.lang.reflect.InvocationTargetException
        Specified by:
        invoke in interface Invoker
        Throws:
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
      • getType

        public java.lang.Class<?> getType()
        Specified by:
        getType in interface Invoker