arrow
Return

Blending design patterns with aspects: A quantitative study

delete2014-12-01
delete7
PRE
AI
N
Nélio Cacho *
S
St Anna, Claudio
E
Eduardo Figueiredo
F
Francisco Dantas
A
Alessandro Garcia
T
Thaı́s Batista
DOI:10.1016/j.jss.2014.08.041delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
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.
Keywords:
Design patterns
Aspect-oriented programming
Composability
Empirical studies
Metrics
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Journal of Systems and Software cover
Journal of Systems and Software
IF:
4.1
Papers:
5.5K
Citations:
8.4K

Organization

U
Universidade Federal de Minas Gerais
Scholars:
2.5W
Papers: 1.5W
Citations: 1.4W
Universidade Federal do Rio Grande do Norte cover
Universidade Federal do Rio Grande do Norte
Scholars:
9.8K
Papers: 5.5K
Citations: 5.2K
P
pontificia universidade catolica do rio de janeiro
Scholars:
2.2K
Papers: 1.7K
Citations: 0
U
Universidade Federal da Bahia
Scholars:
9.4K
Papers: 5.3K
Citations: 4.3K
researcher View more organizations
Cited Papers

Cited Papers

JADE: A software framework for developing multi-agent applications. Lessons learned
err2008-01-01
err187
PREAI
errBellifemine, Fabio; Caire, Giovanni; Poggi, Agostino; Rimassa, Giovanni
errShare
errSave
errShare
errSave
Effect of Exercise on Protein Turnover in Man
err1981-11-01
err0
PREAI
errM. J. Rennie; R. H. T. Edwards; S. Krywawych; C. T. M. Davies; D. Halliday; J. C. Waterlow; D. J. Millward
errShare
errSave