Here you can find the source of invoke(Object proxy, java.lang.reflect.Method method, Object[] args)
public static java.lang.Object invoke(Object proxy, java.lang.reflect.Method method, Object[] args) throws java.lang.Throwable
//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); } }