01: package examples.proxy.tracing;
02:
03: import org.codehaus.aspectwerkz.proxy.Proxy;
04:
05: public class TraceMe2 {
06:
07: public TraceMe2(String name) {
08: }
09:
10: void step1() {
11: step2();
12: }
13:
14: public void step2() {
15: step3();
16: }
17:
18: protected void step3() {
19: }
20:
21: public static void main(String[] args) {
22: TraceMe2 traceMe2 = (TraceMe2) Proxy.newInstance(
23: TraceMe2.class, new Class[] { String.class },
24: new String[] { "foo" });
25: traceMe2.step1();
26:
27: traceMe2 = (TraceMe2) Proxy.newInstance(TraceMe2.class,
28: new Class[] { String.class }, new String[] { "foo" });
29: traceMe2.step1();
30: }
31: }
|