Eclipse AspectJ: Aspect-Oriented Programming with AspectJ and the Eclipse AspectJ Development Tools

Adrian Colyer, Andy Clement, George Harley, Matthew Webster

  • 出版商: Addison Wesley
  • 出版日期: 2004-12-01
  • 定價: $1,750
  • 售價: 6.0$1,050
  • 語言: 英文
  • 頁數: 504
  • 裝訂: Paperback
  • ISBN: 0321245873
  • ISBN-13: 9780321245878
  • 相關分類: Java 相關技術
  • 立即出貨(限量) (庫存=1)

買這商品的人也買了...

商品描述

Table of Contents:

Preface.

Introduction.

I. INTRODUCING ECLIPSE, ASPECTJ, AND AJDT.

1. Getting Started.

    What Is Eclipse?

    Installing Eclipse.

    Eclipse Basics.

    Installing AJDT.

    Examples for This Book.

    Summary .

2. First Steps in AJDT.

    A Simple Insurance Application.

    Tracking Policy Updates.

    Creating an AspectJ Project.

    Creating the PolicyChangeNotification Aspect.

    Stating the Notification Policy.

    Implementing the Notification Policy.

    Showing Advice In AJDT.

    Evaluating the Implementation.

    Finishing Touches.

    Summary.

3. Extending the Application.

    The Story So Far.

    Serialization-Based Persistence.

    Hibernating.

    Managing Build Configurations.

    Summary.

4. More AJDT.

    Building an ASPECTJ Project.

    Debugging.

    Editor Templates and the Outline View Toolbar.

    Generating Documentation (Ajdoc).

    AspectJ Help, Examples, and Cheat Sheets.

    Summary.

II. THE ASPECTJ LANGUAGE.

5. An Overview of AspectJ.

    What Is An Aspect?

    Join Points and Pointcuts.

    Advice. 

    Inter-Type Declarations.

    Key Design Properties of the AspectJ Language.

    Summary. 

    References.

6. Straight to the Point.

    The Calculator Program.

    Introduction to Pointcut Designators.

    The Method Call Pointcut Designator.

    Pointcut Composition.

    Patterns and Signatures.

    The Method Execution Pointcut Designator.

    The Target Pointcut Designator.

    The this Pointcut Designator.

    The get and set Pointcut Designators.

    Capturing Context with the args Pointcut Designator.

    Extracting Values with this and target.

    The handler Pointcut Designator.

    Initialization Pointcut Designators.

    Static Scoping Pointcut Designators: within, withincode.

    Dynamic Scoping Pointcut Designators: cflow, cflowbelow.

    The adviceexecution Pointcut Designator.

    The if Pointcut Designator.

    How to Write a Good Pointcut.

    Common Pitfalls.

    Summary.

7. Take My Advice.

    The Different Types of Advice.

    Advice Parameters and Pointcuts.

    Writing Logic in the Body of Advice.

    Advice Ordering.

    Softening Exceptions.

    declare warning and declare error.

    Common Pitfalls. 

    Summary.

    References.

8. Inter-Type Declarations.

    Fields, Methods, and Constructors.

    Scope and Visibility.

    Inter-Type Declarations and Interfaces.

    Extending Classes.

    Using Pointcuts and Advice with Inter-Type Declarations.

    Summary.

9. Aspects.

    Aspect Definition and Initialization.

    Aspect Instantiation.

    Aspect Inheritance.

    Inner Aspects.

    Aspect Privilege.

    Common Pitfalls.

    Summary.

10. Using the AspectJ API.

    Package org.aspectj.lang.

    Package org.aspectj.lang.reflect.

    Summary.

III. PUTTING IT ALL TOGETHER.

11. Adopting AspectJ.

    The Adoption Process.

    Different Types of Aspects.

    Enforcement Aspect Examples.

    Infrastructure Aspect Examples.

    Core Aspect Examples.

    Evaluating the Simple Insurance Application.

    Summary.

    References.

12. Advanced AJDT.

    Aspect Libraries.

    Linking Aspects with Compiled .class Files.

    Ant Integration.

    Aspect Visualization.

    Summary.

13. Aspect-Oriented Design.

    Finding Aspects.

    What Makes a Good Aspect?

    Closing Thoughts.

Appendix A. Command-Line AspectJ.

    Installing AspectJ.

    Using the Compiler.

    Building with Ant.

Appendix B. AspectJ Language Quick Reference.

    Aspect Declaration.

    Pointcuts.

    Wildcards.

    Advice.

    Inter-Type Declarations.

Appendix C. Next Steps.

    Mailing Lists and FAQ.

    Raising Bugs and Enhancement Requests.

    Contributing to the Development of AspectJ and AJDT

Appendix D. AJDT Icons Reference.

    Objects.

    Object Adornments.

    Markers.

    Build Configuration.

Index.

商品描述(中文翻譯)

目錄:
前言。
介紹。
I. 介紹Eclipse、AspectJ和AJDT。
1. 入門。
- 什麼是Eclipse?
- 安裝Eclipse。
- Eclipse基礎知識。
- 安裝AJDT。
- 本書範例。
- 總結。
2. AJDT的第一步。
- 簡單的保險應用程式。
- 追蹤保單更新。
- 建立AspectJ專案。
- 建立PolicyChangeNotification Aspect。
- 設定通知策略。
- 實現通知策略。
- 在AJDT中顯示Advice。
- 評估實現。
- 完善。
- 總結。
3. 擴展應用程式。
- 目前為止的故事。
- 基於序列化的持久化。
- Hibernating。
- M...