期刊文献+

工厂模式辨析与应用研究

Analysis and Applied Research on Factory Patterns
下载PDF
导出
摘要 通过使用工厂模式封装了易变对象,屏蔽了客户需求变化的负面影响,解决了客户和具体对象的紧耦合。本文讨论工厂模式中简单工厂模式、工厂方法模式和抽象工厂模式的基本结构,并对其适用场景和优缺点进行深入剖析。为进一步降低客户对工厂对象的依赖,用.NET中的反射机制和配置文件动态地创建工厂对象。 By the factory patterns,the volatile objects are sealed,negative impacts of changeable customer needs are shielded,and the problem of tightly coupling between customers and concrete objects is resolved.The basic structures of simple factory pattern,factory method and abstract factory pattern in the factory patterns are discussed.In-depth analysis on its applicability to scenes and advantage and weakness is also conducted.To further reduce customers' reliance on factory objects,factory objects are dynamically created based on the.NET reflection mechanism and the configuration file.
作者 吴清寿
出处 《长春师范学院学报(自然科学版)》 2011年第2期30-33,共4页 Journal of Changchun Teachers College
关键词 设计模式 工厂模式 设计原则 反射 配置文件 design pattern factory pattern design principles reflection configuration file
  • 相关文献

参考文献7

二级参考文献21

  • 1吴光亮,徐茂生.基于构件的Web应用框架[J].计算机科学,2004,31(B09):171-173. 被引量:2
  • 2李忠猛,彭鹏菲.一种基于.Net框架的MVC模式优化策略[J].交通与计算机,2005,23(2):87-89. 被引量:1
  • 3林舒萍,罗键.设计模式的应用研究[J].计算机工程与设计,2005,26(11):2980-2982. 被引量:38
  • 4易燕,周骋,戴祝英.运用设计模式实现数据持久层框架[J].计算机工程与设计,2005,26(12):3365-3367. 被引量:13
  • 5ErichGamma RichardHelm RalphJohnson 李英军译.设计模式:可复用面向对象软件的基础[M].北京:机械工业出版社,2000..
  • 6Magnus Kardell.A classifition of object-oriented design patterns[D].Master's Thesis,Umea University,1999.
  • 7Mikio Aoyama.Evolutionary patterns of design and design patterns[C].Los Alamits,CA,USA:Proceedings International Symposium on Principles of Software Evolution,IEEE Comput Soc,2000.110-116
  • 8Robert B France,Dae-Kyoo Kim,Sudipto Ghosh,et al.A UMLbased pattern specification technique[J].IEEE Transactions on Software Engineering,2004,30(3):193-205.
  • 9Toufik Taibi,David Chek Ling Ngo.Formal specification of design pattern combination using BPSL[J].Information and Software Technology,2003,45(3):157-170.
  • 10Janaki Ram D,Jithendra Kumar Reddy P,Rajasree M S.Pattern hybridization:Breeding new designs out of pattern interactions[J].ACM Software Engineering Notes,2004,29(3):1-10.

共引文献64

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部