Flylib.com
Aspectj Cookbook
Aspectj Cookbook
ISBN: 0596006543
EAN: 2147483647
Year: 2006
Pages: 203
Authors:
Russ Miles
BUY ON AMAZON
AspectJ Cookbook
Table of Contents
Copyright
Preface
Audience
About This Book
Assumptions This Book Makes
Conventions Used in This Book
Using the Code Examples
We d Like to Hear from You
Safari Enabled
Acknowledgments
Chapter 1. Aspect Orientation Overview
Section 1.1. A Brief History of Aspect Orientation
Section 1.2. AspectJ
Section 1.3. A Definition of Aspect Orientation
Section 1.4. Where to Go for More Information
Chapter 2. Getting Started with AspectJ
Introduction
Recipe2.1.Installing AspectJ
Recipe2.2.Developing a Simple Aspect
Recipe2.3.Compiling an Aspect and Multiple Java Files
Recipe2.4.Weaving Aspects into Jars
Recipe2.5.Weaving Aspects at Load Time
Recipe2.6.Generating Javadoc Documentation
Recipe2.7.Compiling an AspectJ Project Using Eclipse
Recipe2.8.Selecting the Aspects That Are Woven in a Build Within Eclipse
Recipe2.9.Building an AspectJ Project Using Ant
Chapter 3. Deploying AspectJ Applications
Introduction
Recipe3.1.Deploying a Command-Line AspectJ Application
Recipe3.2.Deploying an AspectJ Application as a Fully Contained Executable JAR File
Recipe3.3.Deploying a Java Servlet That Uses AspectJ
Recipe3.4.Deploying a JSP That Uses AspectJ
Recipe3.5.Deploying an Axis Web Service That Uses AspectJ
Chapter 4. Capturing Joing Points on Methods
Introduction
Recipe4.1.Capturing a Method Call
Recipe4.2.Capturing the Parameter Values Passed on a Method Call
Recipe4.3.Capturing the Target of a Method Call
Recipe4.4.Capturing a Method When It Is Executing
Recipe4.5.Capturing the Value of the this Reference When a Method Is Executing
Chapter 5. Capturing Join Points on Exception Handling
Introduction
Recipe5.1.Capturing When an Exception Is Caught
Recipe5.2.Capturing the Thrown Exception
Recipe5.3.Capturing the Object Handling the Exception
Chapter 6. Capturing Join Points on Advice
Introduction
Recipe6.1.Capturing When Advice Is Executing
Recipe6.2.Excluding Join Points That Are a Result of Advice Execution
Recipe6.3.Exposing the Original Join Point When Advice Is Being Advised
Chapter 7. Capturing Join Points on Class Object Construction
Introduction
Recipe7.1.Capturing a Call to a Constructor
Recipe7.2.Capturing a Constructor When It Is Executing
Recipe7.3.Capturing When an Object Is Initialized
Recipe7.4.Capturing When an Object Is About to Be Initialized
Recipe7.5.Capturing When a Class Is Initialized
Chapter 8. Capturing Join Points on Attributes
Introduction
Recipe8.1.Capturing When an Object s Attribute Is Accessed
Recipe8.2.Capturing the Value of the Field Being Accessed
Recipe8.3.Capturing When an Object s Field Is Modified
Recipe8.4.Capturing the Value of a Field When It Is Modified
Chapter 9. Capturing Join Points Within Programmatic Scope
Introduction
Recipe9.1.Capturing All Join Points Within a Particular Class
Recipe9.2.Capturing All Join Points Within a Particular Package
Recipe9.3.Capturing All Join Points Within a Particular Method
Chapter 10. Capturing Join Points Based on Control Flow
Introduction
Recipe10.1.Capturing All Join Points Within a Program s Control Flow Initiated by an Initial Join Point
Recipe10.2.Capturing All Join Points Within a Program s Control Flow, Excluding the Initial Join Point
Chapter 11. Capturing Join Points Based on Object Type
Introduction
Recipe11.1.Capturing When the this Reference Is a Specific Type
Recipe11.2.Capturing When a Join Point s Target Object Is a Specific Type
Recipe11.3.Capturing When the Arguments to a Join Point Are a Certain Number, Type, and Ordering
Chapter 12. Capturing Join Points Based on a Boolean or Combined Expression
Introduction
Recipe12.1.Capturing When a Runtime Condition Evaluates to True on a Join Point
Recipe12.2.Combining Pointcuts Using a Logical AND ()
Recipe12.3.Combining Pointcuts Using a Logical OR ()
Recipe12.4.Capturing All Join Points NOT Specified by a Pointcut Declaration
Recipe12.5.Declaring Anonymous Pointcuts
Recipe12.6.Reusing Pointcuts
Chapter 13. Defining Advice
Introduction
Recipe13.1.Accessing Class Members
Recipe13.2.Accessing the Join Point Context
Recipe13.3.Executing Advice Before a Join Point
Recipe13.4.Executing Advice Around a Join Point
Recipe13.5.Executing Advice Unconditionally After a Join Point
Recipe13.6.Executing Advice Only After a Normal Return from a Join Point
Recipe13.7.Executing Advice Only After an Exception Has Been Raised in a Join Point
Recipe13.8.Controlling Advice Precedence
Recipe13.9.Advising Aspects
Chapter 14. Defining Aspect Instantiation
Introduction
Recipe14.1.Defining Singleton Aspects
Recipe14.2.Defining an Aspect per Instance
Recipe14.3.Defining an Aspect per Control Flow
Chapter 15. Defining Aspect Relationships
Introduction
Recipe15.1.Inheriting Pointcut Definitions
Recipe15.2.Implementing Abstract Pointcuts
Recipe15.3.Inheriting Classes into Aspects
Recipe15.4.Declaring Aspects Inside Classes
Chapter 16. Enhancing Classes and the Compiler
Introduction
Recipe16.1.Extending an Existing Class
Recipe16.2.Declaring Inheritance Between Classes
Recipe16.3.Implementing Interfaces Using Aspects
Recipe16.4.Declaring a Default Interface Implementation
Recipe16.5.Softening Exceptions
Recipe16.6.Extending Compilation
Chapter 17. Implementing Creational Object-Oriented Design Patterns
Introduction
Recipe17.1.Implementing the Singleton Pattern
Recipe17.2.Implementing the Prototype Pattern
Recipe17.3.Implementing the Abstract Factory Pattern
Recipe17.4.Implementing the Factory Method Pattern
Recipe17.5.Implementing the Builder Pattern
Chapter 18. Implementing Structural Object-Oriented Design Patterns
Introduction
Recipe18.1.Implementing the Composite Pattern
Recipe18.2.Implementing the Flyweight Pattern
Recipe18.3.Implementing the Adapter Pattern
Recipe18.4.Implementing the Bridge Pattern
Recipe18.5.Implementing the Decorator Pattern
Recipe18.6.Implementing the Proxy Pattern
Chapter 19. Implementing Behavioral Object-Oriented Design Patterns
Introduction
Recipe19.1.Implementing the Observer Pattern
Recipe19.2.Implementing the Command Pattern
Recipe19.3.Implementing the Iterator Pattern
Recipe19.4.Implementing the Mediator Pattern
Recipe19.5.Implementing the Chain of Responsibility Pattern
Recipe19.6.Implementing the Memento Pattern
Recipe19.7.Implementing the Strategy Pattern
Recipe19.8.Implementing the Visitor Pattern
Recipe19.9.Implementing the Template Method Pattern
Recipe19.10.Implementing the State Pattern
Recipe19.11.Implementing the Interpreter Pattern
Chapter 20. Applying Class and Component Scale Aspects
Introduction
Recipe20.1.Validating Parameters Passed to a Method
Recipe20.2.Overriding the Class Instantiated on a Call to a Constructor
Recipe20.3.Adding Persistence to a Class
Recipe20.4.Applying Mock Components to Support Unit Testing
Chapter 21. Applying Application Scale Aspects
Introduction
Recipe21.1.Applying Aspect-Oriented Tracing
Recipe21.2.Applying Aspect-Oriented Logging
Recipe21.3.Applying Lazy Loading
Recipe21.4.Managing Application Properties
Chapter 22. Applying Enterprise Scale Aspects
Introduction
Recipe22.1.Applying Development Guidelines and Rules
Recipe22.2.Applying Transactions
Recipe22.3.Applying Resource Pooling
Recipe22.4.Remoting a Class Transparently Using RMI
Recipe22.5.Applying a Security Policy
Chapter 23. Applying Aspect-Oriented Design Patterns
Introduction
Recipe23.1.Applying the Cuckoo s Egg Design Pattern
Recipe23.2.Applying the Director Design Pattern
Recipe23.3.Applying the Border Control Design Pattern
Recipe23.4.Applying the Policy Design Pattern
Appendix A. The AspectJ Runtime API
Section A.1. org.aspectj.lang
Section A.2. Signature
Section A.3. org.aspectj.lang.reflect
Section A.4. The SoftException Class
Section A.5. The NoAspectBoundException Class
Colophon
Index
SYMBOL
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
R
S
T
U
V
W
Aspectj Cookbook
ISBN: 0596006543
EAN: 2147483647
Year: 2006
Pages: 203
Authors:
Russ Miles
BUY ON AMAZON
WebLogic: The Definitive Guide
JMS
Managing WebLogics EJB Container
EJB QL
Creating an Identity Assertion Provider
SNMP
FileMaker Pro 8: The Missing Manual
Text Parsing Calculations
The Let Function and Variables
Commenting Scripts
Putting a Complex Script Together
Developer Utilities
Making Sense of Change Management: A Complete Guide to the Models, Tools and Techniques of Organizational Change
Part I - The Underpinning Theory
Individual change
Team change
Part II - The Applications
Restructuring
Cisco Voice Gateways and Gatekeepers
Review Questions
DSP Resources
Restrictions and Caveats
Java All-In-One Desk Reference For Dummies
Welcome to Java
Understanding Object-Oriented Programming
Choosing from a List
Working with Files
Using File Streams
Microsoft Visual Basic .NET Programmers Cookbook (Pro-Developer)
Objects, Interfaces, and Patterns
Multithreading
Reflection
Printing and Drawing with GDI+
ADO.NET
flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net
Privacy policy
This website uses cookies. Click
here
to find out more.
Accept cookies