Java Method Call invoke(Object proxy, java.lang.reflect.Method method, Object[] args)

Here you can find the source of invoke(Object proxy, java.lang.reflect.Method method, Object[] args)

Description

invoke

License

Open Source License

Declaration

public static java.lang.Object invoke(Object proxy, java.lang.reflect.Method method, Object[] args)
            throws java.lang.Throwable 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.lang.reflect.Method;

public class Main {
    public static java.lang.Object invoke(Object proxy, java.lang.reflect.Method method, Object[] args)
            throws java.lang.Throwable {
        return method.invoke(proxy, args);
    }/*w  ww  .j a  v a2 s. co  m*/

    public static java.lang.Object invoke(Object proxy, Object target, java.lang.reflect.Method method,
            Object[] args) throws java.lang.Throwable {
        Method m = target.getClass().getMethod(method.getName(), method.getParameterTypes());
        return m.invoke(target, args);
    }
}

Related

  1. invoke(Object object, String methodName, Class[] argTypes, Object... args)
  2. invoke(Object object, String methodName, Class returnType, Object... parameters)
  3. invoke(Object object, String methodName, Object[] args)
  4. invoke(Object objToInvoke, Class classToInvoke, String method, Class[] argumentClasses, Object[] arguments)
  5. invoke(Object owner, String methodName)
  6. invoke(Object source, String key)
  7. invoke(Object target, Class clazz, String methodName, Class[] parameterTypes, Object... args)
  8. invoke(Object target, Class clazz, String method)
  9. invoke(Object target, Method method)