Eclipse AspectJ: Aspect-Oriented Programming with AspectJ and the Eclipse AspectJ Development Tools
暫譯: Eclipse AspectJ:使用 AspectJ 和 Eclipse AspectJ 開發工具的面向切面程式設計

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切面。

陳述通知政策。

實現通知政策。

在AJDT中顯示建議。

評估實現。

最後潤飾。

總結。

3. 擴展應用程式。

到目前為止的故事。

基於序列化的持久性。

休眠。

管理構建配置。

總結。

4. 更多AJDT。

建立一個ASPECTJ專案。

除錯。

編輯器範本和大綱視圖工具列。

生成文檔(Ajdoc)。

AspectJ幫助、範例和備忘單。

總結。

II. ASPECTJ語言。

5. AspectJ概述。

什麼是切面?

連接點和切入點。

建議。

類型間聲明。

AspectJ語言的關鍵設計特性。

總結。

參考文獻。

6. 直入主題。

計算器程式。

切入點設計者介紹。

方法調用切入點設計者。

切入點組合。

模式和簽名。

方法執行切入點設計者。

目標切入點設計者。

this切入點設計者。

get和set切入點設計者。

使用args切入點設計者捕獲上下文。

使用this和target提取值。

handler切入點設計者。

初始化切入點設計者。

靜態範圍切入點設計者:within, withincode。

動態範圍切入點設計者:cflow, cflowbelow。

adviceexecution切入點設計者。

if切入點設計者。

如何撰寫良好的切入點。

常見陷阱。

總結。

7. 聽我的建議。

不同類型的建議。

建議參數和切入點。

在建議主體中撰寫邏輯。

建議排序。

軟化異常。

declare warning和declare error。

常見陷阱。

總結。

參考文獻。

8. 類型間聲明。

欄位、方法和建構子。

範圍和可見性。