期刊文献+

基于AOP技术的Composite模式的改进 被引量:5

Improvement of Composite Pattern Based on AOP
下载PDF
导出
摘要 Composite模式是解决部分与整体关系时常用的设计模式,但基于面向对象设计(OOP)所实现的Composite模式中存在的问题很难利用OOP解决。该文应用面向方面编程(AOP)改变类的行为,利用AspectJ实现Composite模式,通过与以OOP技术实现的Composite模式比较,得出应用AOP方法能够较好地实现责任分离,具有较高的可扩展性,模块结构更清晰。 Composite pattern is a common design pattern to solve the relationship between part and whole. But it's not easy to solve the problems in Composite pattern with OOP, such as responsibility tangling, intertwining code, bad reusability. This paper presents the implementation of Composite pattern with AspectJ by changing classes' behaviors with AOP technology. Compared with Composite pattern with OOP, it proves that the pattern with AOP and AspectJ has better model responsibility cohesion and extensibility.
出处 《计算机工程》 CAS CSCD 北大核心 2008年第10期73-74,77,共3页 Computer Engineering
基金 国家“863”计划基金资助项目(2006AA01Z328) 中国科学院计算机科学国家重点实验室开放课题基金资助项目(SYSKF0704)
关键词 面向方面编程技术 设计模式 COMPOSITE模式 AOP technology design pattern: Composite pattern
  • 相关文献

参考文献6

  • 1Gamma E,Helm R,Johnson R,et al.DesignPatterns Elements of Reusable Object-oriented Software[M].Boston,USA:Addison WesleyProfessional,1995.
  • 2Wu Xiaoqing.Pattern Transformation for Two-dimensional Separation of Concerns[J].ACMSIGSOFT Software Engineering Notes,2005,30(4):218-219.
  • 3Filman RE,Elrad T,Clarke S,et al.Aspect-oriented SoftwareDevelopment[M].Boston,USA:Addison Wesley Professional,2004.
  • 4Colyer A,Clement A,Harley G,et al.Eclipse AspectJ:Aspect-oriented Programming withAspectJ and the Eclipse AspectJ Development Tools[M].Boston,USA:Addison WesleyProfessional,2004.
  • 5Laddad R.AspectJ in Action-Practical Aspect-oriented Programming[M].Greenwich:ManningPublications Co.,2003.
  • 6徐昊.AOP的本质和意义[J].程序员,2005(5):84-86. 被引量:1

同被引文献26

引证文献5

二级引证文献40

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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