首页 | 本学科首页   官方微博 | 高级检索  
     

Java动态代理的研究与应用
引用本文:卢楠.Java动态代理的研究与应用[J].计算机与网络,2014(12):50-52.
作者姓名:卢楠
作者单位:河北医科大学第三医院,河北石家庄050081
摘    要:Java动态代理机制的出现,使得Java开发人员不用手工编写代理类,只要简单地指定一组接口及委托类对象,便能动态地获得代理类。代理类会负责将所有的方法调用分派到委托对象上反射执行,在分派执行的过程中,开发人员还可以按需调整委托类对象及其功能,这是一套非常灵活有弹性的代理框架。针对此框架的优点,把它引入到考试系统的应用中,使得系统的维护和扩展增强,而且减少了编程工作量。

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

Research and Application of Java Dynamic Proxy
LU Nan.Research and Application of Java Dynamic Proxy[J].China Computer & Network,2014(12):50-52.
Authors:LU Nan
Affiliation:LU Nan(The Third Hospital of Hebei Medical University, Shijiazhuang Hebei 050081, China)
Abstract: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.
Keywords:Java dynamic proxy delegate class object reflection agent framework examination system
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号