Classbox/J: controlling the scope of change in Java. 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.
Keywords for this software
References in zbMATH (referenced in 5 articles )
Showing results 1 to 5 of 5.
- Batory, Don; Höfner, Peter; Köppl, Dominik; Möller, Bernhard; Zelend, Andreas: Structured document algebra in action (2015)
- Apel, Sven; Kolesnikov, Sergiy; Liebig, Jörg; Kästner, Christian; Kuhlemann, Martin; Leich, Thomas: Access control in feature-oriented programming (2012) ioport
- Apel, Sven; Lengauer, Christian; Möller, Bernhard; Kästner, Christian: An algebraic foundation for automatic feature-based program synthesis (2010)
- Ducasse, Stéphane; Girba, Tudor; Kuhn, Adrian; Renggli, Lukas: Meta-environment and executable meta-language using smalltalk: an experience report (2009) ioport
- Apel, Sven; Kästner, Christian; Kuhlemann, Martin; Leich, Thomas: Pointcuts, advice, refinements, and collaborations: Similarities, differences, and synergies (2007) ioport