TY - UNPB
T1 - Aspects and Modules Combined
AU - Ovlinger, Johan
AU - Lorenz, David H.
AU - Lieberherr, Karl
PY - 2001/12/1
Y1 - 2001/12/1
N2 - Overly regular module interfaces in object-oriented languages hamper modularization of complex applications. Aspect-oriented programming tackles this problem by allowing module boundaries to span and partition classes in a flexible manner. However, not without a cost. In order to achieve this flexibility, common modularity mechanisms, such as encapsulation and external composition, are lost. The ability to separately compile or reason about a modular unit is also compromised. Combining aspects and modules restores these properties to the aspect-oriented programming language. In restoring the properties, the programming units---Aspectual Collaboration in our case---become more verbose: Encapsulation requires that all collaborations describe their interface to the rest of the application; and composition of collaborations similarly requires that each module's interface be reconciled with the other. We give a brief introduction to Aspectual Collaborations, however, the main part of the paper covers a comparison study of AspectJ, Hyper/J, and Aspectual Collaborations in solving an AOP programming challenge. We derive the comparative cost of using encapsulation.
AB - Overly regular module interfaces in object-oriented languages hamper modularization of complex applications. Aspect-oriented programming tackles this problem by allowing module boundaries to span and partition classes in a flexible manner. However, not without a cost. In order to achieve this flexibility, common modularity mechanisms, such as encapsulation and external composition, are lost. The ability to separately compile or reason about a modular unit is also compromised. Combining aspects and modules restores these properties to the aspect-oriented programming language. In restoring the properties, the programming units---Aspectual Collaboration in our case---become more verbose: Encapsulation requires that all collaborations describe their interface to the rest of the application; and composition of collaborations similarly requires that each module's interface be reconciled with the other. We give a brief introduction to Aspectual Collaborations, however, the main part of the paper covers a comparison study of AspectJ, Hyper/J, and Aspectual Collaborations in solving an AOP programming challenge. We derive the comparative cost of using encapsulation.
UR - https://www.openu.ac.il/home/lorenz/papers/reports/NU-CCS-02-03.html
M3 - מסמך עבודה
BT - Aspects and Modules Combined
CY - Boston, MA 02115
ER -