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

基于CAR构件编程的自动生成Singleton模式的实现
引用本文:张曼夕,;陈榕,;张金焕. 基于CAR构件编程的自动生成Singleton模式的实现[J]. 微机发展, 2008, 0(11): 22-25
作者姓名:张曼夕,  陈榕,  张金焕
作者单位:同济大学基础软件工程中心
基金项目:基金项目:国家863“软件重大专项”项目(2001AA113400)
摘    要:设计模式是一种对设计过程中经常遇到的一些问题的总结及其通用的解决方法,使人们可更加简单方便地复用成功的设计和体系结构。Singleton模式属于设计模式中的一种方法。文中通过基于CAR构件编程的方法,设计了一种基于CAR构件编程中实现自动生成Singleton模式的方法,并通过具体实例来证明此方法的可行性与有效性。用户只需要在类设计时指定类属性为Singleton,就可以自动生成Singleton模式的相关实现代码,从而降低了用户编程的复杂度。

关 键 词:Singleton  CAR  构件

Build Automatically Singleton Pattern Based on CAR Component Program
ZHANG Man-xi,CHEN Rong,ZHANG Jin-huan. Build Automatically Singleton Pattern Based on CAR Component Program[J]. Microcomputer Development, 2008, 0(11): 22-25
Authors:ZHANG Man-xi  CHEN Rong  ZHANG Jin-huan
Affiliation:ZHANG Man-xi, CHEN Rong, ZHANG Jin-huan (System Software Engineering Centre of Tongji University, Shanghai 200092, China)
Abstract:Design pattern which is made people easier to reuse successful design and architecture is a summary on the problems encountered in the design process and its common solution.Singleton pattern belongs to it.Gives a method based on CAR component program,especially introduces a method for building automatic singleton pattern based on CAR component program.The class attribute which is named "singleton" by users is needed when program this class,the relative realized code of singleton mode can be automatically created.And the complexity of programming by users is reduced.
Keywords:Singleton  CAR  component
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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