Spring框架学习[Spring RMI实现远程调用](七)

2014-11-24 03:00:32 · 作者: · 浏览: 5
Object) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { //使用JDK反射机制获取远程调用服务端目标对象的方法 Method method = targetObject.getClass().getMethod(this.methodName, this.parameterTypes); //使用JDK反射机制调用目标对象的方法 return method.invoke(targetObject, this.arguments); }