@Test public void testProcessResult() throws Throwable { LocalProcessHandler localProcessHandler = new LocalProcessHandler(invokerCreator); String name = (String) localProcessHandler.processResult(LocalProcessHandlerTest.class.getMethod("getName"), new Target[]{Target.HISTORY}); assertEquals(name, LocalProcessHandlerTest.class.getName()); }
@Override public Object processResult(Method method, Target[] targets, Object... args) throws Throwable { Class proxyClass = method.getDeclaringClass(); Class<?>[] parameterTypes = method.getParameterTypes(); String methodName = method.getName(); Invoker invoker = invokerCreator.createSyncInvoker(proxyClass, null); return invoke(invoker, proxyClass, method, methodName, parameterTypes, args); }
LocalProcessHandler extends AbstractProcessHandler<URL> { @Override public Object processResult(Method method, Target[] targets, Object... args) throws Throwable { Class proxyClass = method.getDeclaringClass(); Class<?>[] parameterTypes = method.getParameterTypes(); String methodName = method.getName(); Invoker invoker = invokerCreator.createSyncInvoker(proxyClass, null); return invoke(invoker, proxyClass, method, methodName, parameterTypes, args); } }
LocalProcessHandler extends AbstractProcessHandler<URL> { @Override public Object processResult(Method method, Target[] targets, Object... args) throws Throwable { Class proxyClass = method.getDeclaringClass(); Class<?>[] parameterTypes = method.getParameterTypes(); String methodName = method.getName(); Invoker invoker = invokerCreator.createSyncInvoker(proxyClass, null); return invoke(invoker, proxyClass, method, methodName, parameterTypes, args); } LocalProcessHandler(InvokerCreator invokerCreator); }
LocalProcessHandler extends AbstractProcessHandler<URL> { @Override public Object processResult(Method method, Target[] targets, Object... args) throws Throwable { Class proxyClass = method.getDeclaringClass(); Class<?>[] parameterTypes = method.getParameterTypes(); String methodName = method.getName(); Invoker invoker = invokerCreator.createSyncInvoker(proxyClass, null); return invoke(invoker, proxyClass, method, methodName, parameterTypes, args); } LocalProcessHandler(InvokerCreator invokerCreator); @Override Object processResult(Method method, Target[] targets, Object... args); }
LocalProcessHandler extends AbstractProcessHandler<URL> { @Override public Object processResult(Method method, Target[] targets, Object... args) throws Throwable { Class proxyClass = method.getDeclaringClass(); Class<?>[] parameterTypes = method.getParameterTypes(); String methodName = method.getName(); Invoker invoker = invokerCreator.createSyncInvoker(proxyClass, null); return invoke(invoker, proxyClass, method, methodName, parameterTypes, args); } LocalProcessHandler(InvokerCreator invokerCreator); @Override Object processResult(Method method, Target[] targets, Object... args);  }