Automatic Translation from Name-based Pointcuts to Analysis-based Pointcuts for Robust Aspects

Author
WangLin
Advisor
FengZhiYong , LuoShuiHaoYiLang
School
Tianjin University
Major
Software Engineering
Classification
TP311.5 Software Engineering
Degree
Master's thesis
Year
2012
Downloads
11
Citations
0

Request the full text

Abstract

Separation of concerns (SoC) is an important principle insoftware engineering. Without it large software system simplycould not be realized. Aspect-Oriented programming (AOP) improvesSoC by modularizing crosscutting concerns. Unfortunately todaysmainstream AOP languages suffer from fragile pointcut problem.They are fragile because they break easily if the names of themethods or classes are changed when program evolved. We comparedseveral important researches which attempt to solve pointcutfragility, and observed that new pointcut languages are verydifferent from original one, so they are difficult to be writtenby a programmer.In this dissertation we propose a framework called Nataly, whichtranslates name-based pointcuts into analysis-based pointcutsautomatically. Our approach can not only alleviate pointcutfragile problem but also bridge a gap between original name-basedpointcut and other robust one. Name-based pointcuts directly useclass and method names; they merely check that a called/executedmethod has the specified name/type. Analysis-based pointcuts areproposed as an approach to overcome the fragility. They use staticprogram analysis rather than names, and match the join points thatsatisfy the match strategy checked by the analysis. One of theproblems in using the analysis-based pointcuts is difficulty inimplementing correct program analysis. We tackle the problem bytranslations from name-based pointcuts to analysis-based ones. Weimplemented the Nataly framework in Java.We also illustrate a case study that evaluates robustness ofname-based pointcuts and analysis-based pointcuts in face of sevenpossible change scenarios to the classic Figure Editor System.

Table of contents

Summary 3-4 ABSTRACT 4-5 Contents 5-7 List of Figures 7-9 List of Tables 9-10 1 Introduction 10-12 2 Setting the Scene 12-27 2.1 Research Background 12 -20 2.1.1 Crosscutting concerns 12-14 2.1.2 Aspect-Oriented Programming 14-15 2.1.3 Aspect-Oriented Programming Languages ?? 15-17 2.1.4 Fragile Pointcut Problem 17-20 2.2 Analysis-based Pointcut and Related Works 20-27 2.2.1 Analysis- based Pointcut 21-22 2.2.2 Related Works 22-25 2.2.3 Summary 25-27 3 Proposed Framework-Nataly 27-46 3.1 Overview of Proposed Framework 27-28 3.2 Assumptions 28 3.3 Relation Analyzer 28-32 <br / > 3.4 Pattern Generator 32-41 3.4.1 Build Relationship Trees 32-34 3.4.2 Extract Intention Pattern 34-40 3.4 .3 Tregex Pattern Format 40-41 3.5 Code generator 41-44 3.5.1 Generate Analysis-based Pointcut Automatically 42-43 3.5.2 Match join point trees by pattern 43-44 3.6 Stable interfaces / names 44-46 4 Case Study and Evaluation 46-54 4.1 Description 46 4.2 Case study Scenarios and Evaluation 46-53 4.3 Evaluation 53-54 5 Conclusion and Future Work 54-72 A AspectJ Syntax Guide 56-68 A.1 General structure of aspects 56-57 A.2 Inter-type declarations 57 A.3 Pointcut descriptors 57-66 A.3.1 Pointcut definition 59-60 A.3.2 Context exposure 60 -61 A.3.3 Primitive pointcuts 61-65 A.3.4 Signatures 65-66 A.4 Advice 66-68 B Tregex Pattern Syntax Guide 68-72 Bibliography 72-74 Acknowledgments 74

Related dissertations

  1. Design and Implementation of Uniform Interface Platform System on AOP/IoC in the Telecommunications Industry
  2. Research on Methods for Generating AOP Test Cases Based on Predicate Dynamic Slicing
    WangBo ·Zhengzhou University ·2012 ·Master's thesis
  3. The Implementation and Optimization of DiSL Weaver
    ZhengYuDi ·Shanghai Jiaotong University ·2013 ·Master's thesis
  4. Aspect-oriented Programming-based Unit Test Effectiveness Detection System
  5. Software Fault Localization Research Based on Program Semantics
    HeGuoQin ·Hunan University ·2011 ·Master's thesis
  6. Hybrid Mode of Data Validation
  7. Techniques for Separation of Crosscutting Concerns
    HeLiLi ·Jilin University ·2007 ·Doctoral dissertation
  8. Research on Open Temporal Logic Based Formal Verification and Modular Reasoning of Aspect-Oriented Programs
    LvJia ·Zhejiang University ·2009 ·Doctoral dissertation
  9. Key Techniques of Trustworthiness Improvement on Hybird Arithmetic Addition of Floating-point Fused Multiply-add Unit
  10. Research on Aspect-Oriented Design Model and Its Implementation on the .NET Platform
    ZhangXinMeng ·Hebei University of Technology ·2007 ·Master's thesis
  11. Design and Implementation of Color Ring Back Tone Management Service Unified Creation Platform
  12. The Research and Application of Component Mechanism Based on Castle Framework
    YangYang ·Wuhan University of Technology ·2008 ·Master's thesis
  13. Aspect-oriented technology research in the design and implementation of NET in
  14. Research and Implementation of Web Application Performance Monitoring System Based on Aspect-Oriented Programming
    ZhouQingQuan ·Northwestern University ·2008 ·Master's thesis
  15. Aspect Oriented Programming’s Application in UP
    HuangLei ·Tongji University ·2008 ·Master's thesis
  16. Research and Applications of MVC Pattern Based on AOP
    ShenLiJun ·Dalian Maritime University ·2008 ·Master's thesis
  17. Research and Design of Highway Engineering Information Management System Based on J2EE
  18. Design and Implementation of Testing Aspects Interaction Tool for Aspect-Oriented Programs
    ZhuangXuJie ·Shanghai Jiaotong University ·2007 ·Master's thesis
  19. Research and Implementation of Description of AOP’s Pointcuts Based on XML
    ZhuQi ·Shanghai Jiaotong University ·2008 ·Master's thesis
  20. Study and Implementation of Pipa and Its Runtime Assertion Checking Compiler
    WangDai ·Shanghai Jiaotong University ·2008 ·Master's thesis