Abstract | ||
---|---|---|
Design patterns often need to be blended (or composed) when they are instantiated in a software system. The composition of design patterns consists of assigning multiple pattern elements into overlapping sets of classes in a software system. Whenever the modularity of each design pattern is not preserved in the source code, their implementation becomes tangled with each other and with the classes' core responsibilities. As a consequence, the change or removal of each design pattern will be costly or prohibitive as the software system evolves. In fact, composing design patterns is much harder than instantiating them in an isolated manner. Previous studies have found design pattern implementations are naturally crosscutting in object-oriented systems, thereby making it difficult to modularly compose them. Therefore, aspect-oriented programming (AOP) has been pointed out as a natural alternative for modularizing and blending design patterns. However, there is little empirical knowledge on how AOP models influence the composability of widely used design patterns. This paper investigates the influence of using AOP models for composing the Gang-of-Four design patterns. Our study categorizes different forms of pattern composition and studies the benefits and drawbacks of AOP in these contexts. We performed assessments of several pair-wise compositions taken from 3 medium-sized systems implemented in Java and two AOP models, namely, AspectJ and Compose*. We also considered complex situations where more than two patterns involved in each composition, and the patterns were interacting with other aspects implementing other crosscutting concerns of the system. In general, we observed two dominant factors impacting the pattern composability with AOP: (i) the category of the pattern composition, and (ii) the Aspecti idioms used to implement the design patterns taking part in the composition. (C) 2014 Elsevier Inc. All rights reserved. |
Year | DOI | Venue |
---|---|---|
2014 | 10.1016/j.jss.2014.08.041 | Journal of Systems and Software |
Keywords | DocType | Volume |
Design patterns,Aspect-oriented programming,Composability,Empirical studies,Metrics | Journal | 98 |
Issue | ISSN | Citations |
C | 0164-1212 | 0 |
PageRank | References | Authors |
0.34 | 19 | 6 |
Name | Order | Citations | PageRank |
---|---|---|---|
Nélio Cacho | 1 | 205 | 18.33 |
Cláudio Sant'Anna | 2 | 258 | 15.36 |
Eduardo Figueiredo | 3 | 851 | 36.26 |
Francisco Dantas | 4 | 168 | 9.56 |
Alessandro Garcia | 5 | 2231 | 143.70 |
Thaís Vasconcelos Batista | 6 | 157 | 21.34 |