首页 | 官方网站   微博 | 高级检索  
     

反射机制下类工厂模式的实现与研究
引用本文:吴东庆,胡小健,杨逢建.反射机制下类工厂模式的实现与研究[J].计算机应用,2006,26(3):705-0707.
作者姓名:吴东庆  胡小健  杨逢建
作者单位:仲恺农业技术学院,计算科学系,广东,广州,510225
基金项目:广东省教育厅自然科学基金
摘    要:工厂模式是把客户端模块与服务端模块有效解耦的模式之一。在传统的工厂模式中,由于开发语言的限制,服务端与工厂类的耦合度相当高。新开发语言的反射机制的引入,使得工厂模式不再需要传统的继承方法就能够构造新的产品。提出了在反射机制下的类工厂模式,实现服务端与工厂类彻底解耦,并在某商用图形系统中得到验证。

关 键 词:设计模式  类工厂  反射
文章编号:1001-9081(2006)03-0705-03
收稿时间:2005-09-27
修稿时间:2005-09-272005-11-21

Research and realization of class factory pattern under reflection mechanism
WU Dong-qing,HU Xiao-jian,YANG Feng-jian.Research and realization of class factory pattern under reflection mechanism[J].journal of Computer Applications,2006,26(3):705-0707.
Authors:WU Dong-qing  HU Xiao-jian  YANG Feng-jian
Affiliation:Department of Computer Science, Zhongkai University of Agrlculture and Technology, Guangzhou Guangdong 510225, China
Abstract:Factory pattern is one of the effective patterns which decouple client and server. Restricted by language, the coupling rate between server and factory class remains high. Thanks to the introduction of reflection mechanism, factory pattern could produce new type product without resort to conventional inheritance. A new class factory pattern under reflection mechanism was presented, which could completely deeouple server and factory class. The idea was proved in a business graphics system.
Keywords:design pattern  class factory  reflection
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《计算机应用》浏览原始摘要信息
点击此处可从《计算机应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号