Java动态代理的研究与应用  被引量:4

Research and Application of Java Dynamic Proxy

在线阅读下载全文

作  者:卢楠[1] 

机构地区:[1]河北医科大学第三医院,河北石家庄050081

出  处:《计算机与网络》2014年第12期50-52,共3页Computer & Network

摘  要:Java动态代理机制的出现,使得Java开发人员不用手工编写代理类,只要简单地指定一组接口及委托类对象,便能动态地获得代理类。代理类会负责将所有的方法调用分派到委托对象上反射执行,在分派执行的过程中,开发人员还可以按需调整委托类对象及其功能,这是一套非常灵活有弹性的代理框架。针对此框架的优点,把它引入到考试系统的应用中,使得系统的维护和扩展增强,而且减少了编程工作量。The emergence of Java dynamic proxy mechanism makes the Java developers dynamically obtain the proxy class by specifying a set of interface and delegate class object without manually writing the proxy class. The proxy class will be responsible for assigning all the method to the delegate object for reflection execution. During the assignment, the developers can also adjust the delegate class object and its fimction as needed, which is a very flexible and resilient agent framework. The introduction of this framework into the?examination system can enhance?the maintenance and expansion of system, and reduce the workload ofprogramming.

关 键 词:Java动态代理 委托类对象 反射 代理框架 考试系统 

分 类 号:TP312.2[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象