基于CAR构件编程的自动生成Singleton模式的实现  

Build Automatically Singleton Pattern Based on CAR Component Program

在线阅读下载全文

作  者:张曼夕 陈榕[1] 张金焕 

机构地区:[1]同济大学基础软件工程中心,上海200092

出  处:《计算机技术与发展》2008年第11期22-25,共4页Computer Technology and Development

基  金:国家863"软件重大专项"项目(2001AA113400)

摘  要:设计模式是一种对设计过程中经常遇到的一些问题的总结及其通用的解决方法,使人们可更加简单方便地复用成功的设计和体系结构。Singleton模式属于设计模式中的一种方法。文中通过基于CAR构件编程的方法,设计了一种基于CAR构件编程中实现自动生成Singleton模式的方法,并通过具体实例来证明此方法的可行性与有效性。用户只需要在类设计时指定类属性为Singleton,就可以自动生成Singleton模式的相关实现代码,从而降低了用户编程的复杂度。Design pattern which is made people easier to reuse successful design and architecture is a summary on the problems encountered in the design process arid its common solution. Singleton pattern belongs to it. Gives a method based on CAR component program, especially introduces a method for building automatic singleton pattem 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 he automatic.ally created: And the complexity of programming by users is reduced.

关 键 词:SINGLETON CAR 构件 

分 类 号:TP311.5[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象