Tutorial

This directory contains sample programs to test drive JBoss AOP. 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

Starting up

These examples are introductory and their goal is to start you up using JBoss AOP.

Aspects and Advices

JBoss AOP provides five types of advices in total. We will start with the around ones, in the first part of this section, and them move to the other types.

    Around Advices and Interceptors (Simple)

    Typed Advices (Advanced)

Other Pointcut Constructs

In "Start Up" section, we have seen the main pointcut constructs. The following examples complete the list by showing all other features JBoss AOP provides in its pointcut language.

Annotations and MetaData

You can access metadata and annotations from advices. In the next few examples we will show you how to do this.

Advanced Features

This sections covers the JBoss AOP advanced features, like introduction of interfaces, mixins and annotations, for example.

Packaging and Running

These examples will start you up in running JBoss AOP standalone and with JBoss AS.

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 annotations.

Enjoy