in the aspect runtime to jump to pattern logic routines
were collected.
Times needed to handle creation/destruction of
object are usually greater than those required to in-
tercept operations. Command Factories must be set
up for Command executors to being created and op-
erative. This requires more time than the other kind
of pointcuts expressions, that have only to capture
the context of an operation, issuing error or execut-
ing business logic if necessary.
In pointcut expressions related to Command de-
sign pattern operations the worst overheads due to
aspect interception mechanism are always less than
1.5% of the pattern collaboration times. Therefore,
the suitability of performance overhead was assessed,
where all the timing constraints were satisfied flatly.
6 CONCLUSIONS AND FUTURE
WORKS
An Aspect Oriented DSL-based framework to spec-
ify and to apply, declaratively, Design Patterns to
the system classes has been proposed in this paper.
AOSD and MDSD features are exploited to improve
the modularity, the internal code quality, and the flexi-
bility of DPs. The framework allows software design-
ers to specify DP models with a more extensive modi-
fiability thus limiting the impact of changes, related to
DP adoption, on the code of the base system. DPs are
specified by a DSL based on a meta-model where a
DP is seen and structured as an (ordered) sequence of
named Concern elements. A prototype of the frame-
work was used in a case study to assess its effective-
ness and efficiency. The results from the case study
showed that the AOP version of DPs dramatically im-
proved the modularity of the system with respect to
the ’traditional’ OO version. Future work will con-
sider improvements of the prototype framework and
DSL.
REFERENCES
Gamma, E., Helm, R., Johnson, R., Vlissides, J., ’Design
Patterns: Elements of Reusable Object-Oriented Soft-
ware’, Addison-Wesley (1995).
Hannemann, J., Kiczales, G., ’Design Patterns Implementa-
tion in Java and AspectJ’, Proc. of Object Oriented
Programming Systems Languages and Applications
2002 (OOPSLA ’02).
Hachani, O. , Bardou D., ’On Aspect-Oriented Technology
and Object-Oriented Design Patterns’ , Proc. of Eu-
ropean Conference on Object Oriented Programming
2003 (ECOOP 2003).
Nordberg Martin E., ’Aspect Oriented Indirection - Beyond
Object Oriented Design Patterns’ , Proc. of Workshop.
Beyond Design: Patterns (mis)used, Proc. of Object
Oriented Programming Systems Languages and Ap-
plications 2002 (OOPSLA ’02).
AspectJ web site - http://www.eclipse.org/aspectj
Hannemann, J., Kiczales, G.,’Overcoming the Prevalent
Decomposition of Legacy Code’, Workshop on Ad-
vanced Separation of Concerns at the International
Conference on Software Engineering 2001 (ICSE’01).
Eaddy, M., Aho,A , Gail C. Murphy., ’Identifying, Assign-
ing, and Quantifying Crosscutting Concerns’, Proc.
of the First International Workshop on Assessment
of Contemporary Modularization Techniques (ACoM
’07), IEEE Computer Society, Washington, 2007.
Arpaia, P., Bernardi, M.L., Di Lucca, G., Inglese, V.,
Spiezia, G.,‘An Aspect-Oriented Programming-based
approach to software development for fault detection
in measurement systems’, Comput. Stand. Interfaces
32, 2010.
El Boussaidi, G., Mili, H. , ‘A model-driven framework
for representing and applying design patterns’, Proc.
of the 31st Annual International Computer Software
and Applications Conference (COMPSAC ’07), Vol.
1. IEEE Computer Society, Washington, DC, USA,
2007.
Alencar, P.S.C., Cowan, D.D., Dong, J., Lucena, C.J.P.,
‘A transformational Process-Based Formal Approach
to Object-Oriented Design’, Formal Methods Europe,
1997
Elaasar, M., Briand, L.C., Labiche, Y., ‘A metamodeling
approach to pattern specification’, In Proc. of the 9th
international conference on Model Driven Engineer-
ing Languages and Systems (MoDELS’06), Springer-
Verlag, Berlin, Heidelberg, 484-498, 2006.
Baca, P. Vranic, V., ‘Replacing Object-Oriented Design Pat-
terns with Intrinsic Aspect-Oriented Design Patterns’,
Proc. of the 2nd Eastern European Regional Confer-
ence on theEngineering of Computer Based Systems
(ECBS-EERC), pp.19,26, 5-6 Sept. 2011.
Zdun, U., ‘Pattern language for the design of aspect lan-
guages and aspect composition frameworks’, Soft-
ware, IEE Proc. , vol.151, no.2, pp.67,83, 5 April
2004.
Soundarajan, N., Hallstrom, J.O., ‘Responsibilities and re-
wards: specifying design patterns’, Proc. of 26th In-
ternational Conference on Software Engineering 2004
(ICSE 2004).
Gosling, J., Joy, B., Steele, G.L., ‘The Java Language Spec-
ification (1st ed.)’, Addison-Wesley Longman Pub-
lishing Co., Inc., Boston, MA, USA, 1996.
Bernardi, M.L., Di Lucca, G.A., ‘Improving Design Pattern
Quality Using Aspect Orientation’, Proc. of the 13th
IEEE International Workshop on Software Technol-
ogy and Engineering Practice, 2005.
Bernardi, M.L., Cimitile, M., Maggi, F. M., ‘Model Driven
Development of Process-centric Web Applications’,
Proc. of the 7th International Conference on Software
Paradigm Trends 2012 (ICSOFT 2012).
AnAspectOrientedFrameworkforFlexibleDesignPattern-basedDevelopment
535