aboutsummaryrefslogtreecommitdiffstats
path: root/docs/modules/ROOT/examples/tracing/README
blob: bf8e7039075fd373c43277dbc794b52fe77d19c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
This directory contains several examples of tracing aspects,
including a reusable tracing library and examples of 
using that library.

A lesson in the AspectJ Primer explains all of this code.

To work with these (or any other examples), first be sure .../examples
is on your classpath, where ... is where you have installed AspectJ.


--To compile and run the example without tracing--

 ajc @.../examples/tracing/notrace.lst

 java tracing.ExampleMain


--To compile and run the example with tracing version<N>--

 ajc @.../examples/tracing/tracev<N>.lst

 java tracing.version<N>.TraceMyClasses

where <N> is 1, 2, 3 or 4

--To use the tracing.lib.AbstractTrace aspect--

 Make sure .../examples is in your classpath.

 In order to use this aspect, please read the documentation under
 tracing/doc