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


Implementing design patterns as parametric aspects using ParaAJ: The case of the singleton,observer, and decorator design patterns
Affiliation:Information and Computer Science Department, King Fahd University of Petroleum and Minerals, Dhahran, Saudi Arabia
Abstract:Implementation of a design pattern can take many forms according to the programming language being used. Most of the literature presents design patterns in their conventional object-oriented implementations. Several other studies show the implementation in aspect-oriented languages such as AspectJ, EOS, and Caesar. In this work, we compare the implementation of three design patterns: singleton, observer, and decorator design patterns in these languages and also discuss the possibility of implementing them in ParaAJ: an extension to the AspectJ language that implements the idea of parametric aspects. We found that ParaAJ helps in making the implementation of the singleton and observer patterns reusable but it fails to help in the decorator case. The problem with the decorator pattern exists because of the current translation mechanism of ParaAJ?s aspects to normal AspectJ?s aspects. This opens the door for further work in ParaAJ to better support the idea of parametric aspects.
Keywords:Design patterns  Reusability  Parametric aspects  ParaAJ
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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