(Object proxy, Method method,
Object[] args)
| 23 | } |
| 24 | } |
| 25 | @Override |
| 26 | public Object invoke(Object proxy, Method method, |
| 27 | Object[] args) throws Throwable { |
| 28 | String methodName = method.getName(); |
| 29 | Object delegate = delegatesByMethod.get(methodName); |
| 30 | return method.invoke(delegate, args); |
| 31 | } |
| 32 | @SuppressWarnings("unchecked") |
| 33 | public static Object newInstance(Tuple2... pairs) { |
| 34 | Class[] interfaces = new Class[pairs.length]; |