Talk
Java Extensions for Design Pattern Instantiation
André Santos (Santos, A.); Duarte Coelho (Duarte Coelho);
Event Title
15th International Conference on Software Reuse (ICSR'16)
Year (definitive publication)
2016
Language
English
Country
Cyprus
More Information
--
Web of Science®

Times Cited: 0

(Last checked: 2022-02-17 09:14)

View record in Web of Science®

Scopus

Times Cited: 0

(Last checked: 2022-02-20 03:04)

View record in Scopus

Google Scholar

This publication is not indexed in Google Scholar

This publication is not indexed in Overton

Abstract
Design patterns are not easily traceable in source code, leading to maintainability and comprehension issues, while the instantiation of certain patterns involves generalizable boiler-plate code. We provide high-level language constructs addressing design patterns that transform source code by injecting a substantial part of their implementation at compile time. We developed proof of concept extensions addressing widely used design patterns, namely Singleton, Visitor, Decorator, and Observer, using annotations as the means to extend Java. We describe our Java annotations to support these design patterns and the associated source code transformations, demonstrating that it is possible to significantly reduce the necessary code to instantiate a pattern through the use of high-level constructs.
Acknowledgements
--
Keywords
  • Physical Sciences - Natural Sciences