摘要
针对现有VB语言自身的特点使其在设计模式的实现上具有很多先天不足,譬如对于具有重要应用价值的创造性设计模式中的Singleton设计模式无法实现,阐述了Singleton模式在VB中通过结合COM组件和对象工厂模式变通实现的技巧,并运用具体的实例展示了Singleton模式在需要节约资源及业务需求单一事件场合中的应用,实现了VB采用优秀体系结构的创造型设计模式。
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.
出处
《河北工业科技》
CAS
2005年第6期334-336,339,共4页
Hebei Journal of Industrial Science and Technology