✎
编程开发网
首页
C语言
C++
面试
Linux
函数
Windows
数据库
下载
搜索
当前位置:
首页
->
AI编程基础
->
JAVA
Spring框架学习[Spring RMI实现远程调用](七)
2014-11-24 03:00:32
·
作者:
·
浏览:
5
标签:
Spring
框架
学习
RMI
实现
远程
调用
Object) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { //使用JDK反射机制获取远程调用服务端目标对象的方法 Method method = targetObject.getClass().getMethod(this.methodName, this.parameterTypes); //使用JDK反射机制调用目标对象的方法 return method.invoke(targetObject, this.arguments); }
public Object invoke(Object targetObject) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { //使用JDK反射机制获取远程调用服务端目标对象的方法 Method method = targetObject.getClass().getMethod(this.methodName, this.parameterTypes); //使用JDK反射机制调用目标对象的方法 return method.invoke(targetObject, this.arguments); }
首页
上一页
4
5
6
7
8
9
10
下一页
尾页
7
/11/11