KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > examples > proxy > tracing > TraceList


1 package examples.proxy.tracing;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.List JavaDoc;
5
6 import org.codehaus.aspectwerkz.proxy.Proxy;
7
8 public class TraceList {
9
10     public static void main(String JavaDoc[] args) {
11         List JavaDoc list = (List JavaDoc) Proxy.newInstance(ArrayList JavaDoc.class);
12         list.add("test");
13         String JavaDoc test = (String JavaDoc) list.get(0);
14         list.clear();
15     }
16 }
17
Popular Tags