Test-based Pointcuts for Aspect-Oriented Programming
-
- SAKURAI Kouhei
- Graduate School of Arts and Sciences, the University of Tokyo
-
- MASUHARA Hidehiko
- Graduate School of Arts and Sciences, the University of Tokyo
Bibliographic Information
- Other Title
-
- アスペクト指向プログラミングにおけるテストに基づいたポイントカットの提案
Abstract
This paper proposes test-based pointcuts, a new pointcut mechanism for aspect-oriented programming (AOP). In AOP languages, the programmer must specify points to which an aspect is applied. In existing AOP languages, pointcuts have frequently to be updated even when minor modification is made to a program because the pointcuts rely on method and type names in the program. With test-based pointcuts, the programmer can indirectly specify points of aspect application through test programs. Thus it does not need to change pointcut descriptions as long as the test programs are updated in response to the program modification. Also, test-based pointcuts can specify points of aspect application by matching on execution history against execution histories of tests. Thus it gives more straightforward descriptions than those specify points of aspect application based on low-level control-flow such as conditional branches. Our case study with test-based pointcuts confirmed that, in most cases, more robust than existing pointcuts in AspectJ.
Journal
-
- Computer Software
-
Computer Software 24 (3), 141-152, 2007
Japan Society for Software Science and Technology
- Tweet
Details 詳細情報について
-
- CRID
- 1390001204736405120
-
- NII Article ID
- 130004892095
-
- ISSN
- 02896540
-
- Data Source
-
- JaLC
- CiNii Articles
- KAKEN
-
- Abstract License Flag
- Disallowed