Affiliation:
1. University of Bern -- Switzerland
2. LISTIC -- University of Savoie, France & University of Bern -- Switzerland
Abstract
Unanticipated changes to complex software systems can introduce anomalies such as duplicated code, suboptimal inheritance relationships and a proliferation of run-time downcasts. Refactoring to eliminate these anomalies may not be an option, at least in certain stages of software evolution.
Classboxes
are modules that restrict the visibility of changes to selected clients only, thereby offering more freedom in the way unanticipated changes may be implemented, and thus reducing the need for convoluted design anomalies. In this paper we demonstrate how classboxes can be implemented in statically-typed languages like Java. We also present an extended case study of Swing, a Java GUI package built on top of AWT, and we document the ensuing anomalies that Swing introduces. We show how Classbox/J, a prototype implementation of classboxes for Java, is used to provide a cleaner implementation of Swing using local refinement rather than subclassing.
Publisher
Association for Computing Machinery (ACM)
Subject
Computer Graphics and Computer-Aided Design,Software
Reference38 articles.
1. AspectJ home page. http://eclipse.org/aspectj/. AspectJ home page. http://eclipse.org/aspectj/.
2. Awt api. http://java.sun.com/j2se/1.3/docs/api/java/awt/package-summary.html. Awt api. http://java.sun.com/j2se/1.3/docs/api/java/awt/package-summary.html.
3. Refinements and multi-dimensional separation of concerns
4. Classboxes: controlling visibility of class extensions
5. LNCS;Bergel A.,2003
Cited by
20 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. : Software product lines extraction driven by language server protocol;Journal of Systems and Software;2023-11
2. Model Transformation Product Lines;Proceedings of the 21th ACM/IEEE International Conference on Model Driven Engineering Languages and Systems;2018-10-14
3. Physical separation of features;Proceedings of the 33rd Annual ACM Symposium on Applied Computing;2018-04-09
4. FeatureCoPP: compositional annotations;Proceedings of the 7th International Workshop on Feature-Oriented Software Development;2016-10-30
5. On the Use of C# Partial Classes for the Implementation of Software Product Lines;The Computer Journal;2016-09-08