Wir verwenden Cookies und Analyse-Tools, um die Nutzerfreundlichkeit der Internet-Seite zu verbessern und für Marketingzwecke. Wenn Sie fortfahren, diese Seite zu verwenden, nehmen wir an, dass Sie damit einverstanden sind. Zur Datenschutzerklärung.
Controlling Visibility of Class Extensions
Details
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.
A class extension is a method that is defined in a
module, but
whose class is defined elsewhere. Class extensions
offer a
convenient way to incrementally modify existing
classes when
subclassing is inappropriate. Unfortunately existing
approaches
suffer from various limitations. Either class
extensions have a global
impact or they have a purely local impact, with
negative results for
collaborating clients. Furthermore, conflicting class
extensions are
either disallowed, or resolved by linearization, with
subsequent
negative effects.
To solve these problems we present classboxes, a
module system
for object-oriented languages that provides for
behavior refinement
(i.e., method addition and replacement). Moreover,
the changes
made by a classbox are only visible to that classbox
(or classboxes
that import it), a feature we call local rebinding.
Autorentext
Alexandre Bergel is Assistant Professor at the University ofChile. He obtained his PhD in 2005 from the University of Berne, Switzerland, under thesupervision of Prof. Nierstrasz and Prof. Ducasse.
Klappentext
Unanticipated changes to complex software systems canintroduce anomalies such as duplicated code, suboptimalinheritance relationships and a proliferation of run-timedowncasts. Refactoring to eliminate these anomalies may not be an option, atleast in certain stages of software evolution.A class extension is a method that is defined in amodule, but whose class is defined elsewhere. Class extensionsoffer a convenient way to incrementally modify existingclasses when subclassing is inappropriate. Unfortunately existingapproaches suffer from various limitations. Either classextensions have a global impact or they have a purely local impact, withnegative results for collaborating clients. Furthermore, conflicting classextensions are either disallowed, or resolved by linearization, withsubsequent negative effects.To solve these problems we present classboxes, amodule system for object-oriented languages that provides forbehavior refinement (i.e., method addition and replacement). Moreover,the changes made by a classbox are only visible to that classbox(or classboxes that import it), a feature we call local rebinding.
Weitere Informationen
- Allgemeine Informationen
- GTIN 09783639165180
- Sprache Englisch
- Größe H220mm x B220mm
- Jahr 2009
- EAN 9783639165180
- Format Kartonierter Einband (Kt)
- ISBN 978-3-639-16518-0
- Titel Controlling Visibility of Class Extensions
- Autor Alexandre Bergel
- Untertitel Classboxes
- Herausgeber VDM Verlag
- Anzahl Seiten 156
- Genre Informatik