## Tutorial

This directory contains sample programs to test drive JBossAOP. They should probably be run in order, but feel free to skip around.

### XML examples

The XML examples give a fuller coverage of the features of the AOP framework

- Method execution
- Field execution
- Constructor execution
- The all syntax
- Stacks
- Caller pointcuts
- Instanceof
- Implements
- JDK 1.5 Annotations
- JDK 1.5 Annotations with JDK 1.4
- JBoss AOP metadata
- Control flow
- Dynamic control flow
- Named pointcuts and composition
- Aspects
- Interceptor precedence
- Introductions
- Annotation introductions
- Dynamic AOP
- Packaging
- The has and hasfield operator
- Typedefs
- Packaging for JBoss
- JavaBean-style config of aspects
- Declare error/warning

### Annotation examples

The annotation examples are shorter, since they assume you have already been through the XML examples and already understand the AOP basics. Their aim is to introduce you to how to achieve the same using JDK 5.0 annotations. To run them you will need to set up your environment so that you are running JDK 5.0

- Annotated interceptors
- Annotated aspects
- Annotated composition
- Annotated typedefs
- Annotated cflow
- Annotated dynamic cflow
- Annotated precedence
- Annotated introductions
- Annotated declare error/warning
- Annotated packaging for JBoss

Enjoy