Non-annotated examples

This example can be run with either JDK 5 or JDK 1.4

Run with JDK 5

The two main targets for running with JDK 5 are

$ ant run.aopc.50
$ ant run.loadtime.50

These are compiled against the JBoss AOP libraries for JDK 5, and so will work with JDK 5 only

ant.run.aopc.50

The ant.run.aopc.50 target uses compile-time weaving, and performs the following steps

ant.loadtime.aopc.50

The ant.loadtime.aopc.50 target uses load-time weaving (the classes are transformed when first loaded) and performs the following steps:

Run with JDK 1.4

The following two targets illustrate the steps to run annotated code on JDK 1.4.

$ ant run.aopc.14
$ ant run.loadtime.14

These are compiled against the JBoss AOP libraries for JDK 1.4, and so will work regardless of if your chosen JDK is JDK 1.4 or JDK 5.

ant.run.aopc.14

The ant.run.aopc.14 target uses compile-time weaving, and performs the following steps

ant.loadtime.14

The ant.loadtime.14 target uses loadtime-time weaving (the classes are transformed when first loaded) and performs the following steps: