KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > implementz > Driver


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package implementz;
8
9 /**
10  *
11  * @author <a HREF="mailto:kabir.khan@jboss.org">Kabir Khan</a>
12  * @version $Revision: 44138 $
13  */

14 public class Driver
15 {
16    public static void main(String JavaDoc[] args) throws Exception JavaDoc
17    {
18       System.out.println("--- POJO ---");
19       POJO pojo = new POJO();
20
21       System.out.println("--- POJO.methodFromImplements ---");
22       pojo.methodFromImplements();
23
24       System.out.println("--- POJO.methodFromImplementingSuper (should not intercept) ---");
25       pojo.methodFromImplementsSuper();
26
27       System.out.println("--- POJO.methodFromImplementing ---");
28       pojo.methodFromImplementing();
29
30       System.out.println("--- POJO.methodFromImplementingSuper ---");
31       pojo.methodFromImplementingSuper();
32
33       System.out.println("--- POJO.ownMethod (should not intercept) ---");
34       pojo.ownMethod();
35    }
36 }
37
Popular Tags