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

Singleton模式在VB中的实现和应用
引用本文:郑毅琳,王 顶.Singleton模式在VB中的实现和应用[J].河北工业科技,2005,22(6):334-336,339.
作者姓名:郑毅琳  王 顶
作者单位:河北科技大学电气信息学院,河北,石家庄,050054;河北经贸大学数学与统计学院,河北,石家庄,050061
摘    要:针对现有VB语言自身的特点使其在设计模式的实现上具有很多先天不足,譬如对于具有重要应用价值的创造性设计模式中的Singleton设计模式无法实现,阐述了Singleton模式在VB中通过结合COM组件和对象工厂模式变通实现的技巧,并运用具体的实例展示了Singleton模式在需要节约资源及业务需求单一事件场合中的应用,实现了VB采用优秀体系结构的创造型设计模式。

关 键 词:Singleton  设计模式  COM组件  VB
文章编号:1008-1534(2005)06-0334-03
收稿时间:2005/3/24 0:00:00
修稿时间:2005年3月24日

Implementing and application of the Singleton pattern in VB
ZHENG Yi-lin and WANG Ding.Implementing and application of the Singleton pattern in VB[J].Hebei Journal of Industrial Science & Technology,2005,22(6):334-336,339.
Authors:ZHENG Yi-lin and WANG Ding
Institution:ZHENG Yi-lin~1,WANG Ding~2
Abstract:Because of the limit of VB language,it is diffcult to implement design patterns in Visual Basic,such as singleton pattern possessing significant application in value amongst the creative design modes.This paper shows the tips of implementing singleton design pattern versatilely in Visual Basic by means of using COM component and target factory mode.The application of singleton pattern is illustrated in occasion of resource economy and single operation by using a concrete instance.The creative design patterns are implemented by adopting excellent systemetic configuration.
Keywords:Singleton  design patterns  COM component  VB
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《河北工业科技》浏览原始摘要信息
点击此处可从《河北工业科技》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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