01: package examples.proxy.tracing;
02:
03: import java.util.ArrayList;
04: import java.util.List;
05:
06: import org.codehaus.aspectwerkz.proxy.Proxy;
07:
08: public class TraceList {
09:
10: public static void main(String[] args) {
11: List list = (List) Proxy.newInstance(ArrayList.class);
12: list.add("test");
13: String test = (String) list.get(0);
14: list.clear();
15: }
16: }
|