KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > aop > reflection > ReflectionAopPOJO


1 /*
2   * JBoss, Home of Professional Open Source
3   * Copyright 2005, JBoss Inc., and individual contributors as indicated
4   * by the @authors tag. See the copyright.txt in the distribution for a
5   * full listing of individual contributors.
6   *
7   * This is free software; you can redistribute it and/or modify it
8   * under the terms of the GNU Lesser General Public License as
9   * published by the Free Software Foundation; either version 2.1 of
10   * the License, or (at your option) any later version.
11   *
12   * This software is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15   * Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public
18   * License along with this software; if not, write to the Free
19   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21   */

22 package org.jboss.test.aop.reflection;
23
24 /**
25  * @author <a HREF="mailto:kabirkhan@bigfoot.com">Kabir Khan</a>
26  */

27
28 public class ReflectionAopPOJO extends ReflectionAopRootPOJO
29 {
30    private int i;
31    public int j;
32    public int k;
33
34    public ReflectionAopPOJO()
35    {
36       if (1 == 0)
37          System.out.println(i);
38       System.out.println("ReflectionAopPOJO default constructor");
39    }
40
41    public ReflectionAopPOJO(int j)
42    {
43       System.out.println("ReflectionAopPOJO constructor(int)");
44       this.j = j;
45    }
46
47    public ReflectionAopPOJO(String JavaDoc s)
48    {
49       System.out.println("ReflectionAopPOJO constructor(string)");
50    }
51
52    public ReflectionAopPOJO(boolean b)
53    {
54       System.out.println("ReflectionAopPOJO constructor(boolean)");
55    }
56    
57    public ReflectionAopPOJO(long l)
58    {
59       System.out.println("ReflectionAopPOJO constructor(long)");
60    }
61    
62    public void method()
63    {
64       System.out.println("ReflectionAopPOJO method()");
65
66    }
67
68    public void method(int i)
69    {
70       System.out.println("ReflectionAopPOJO method(int)");
71    }
72    
73    public void method(boolean b)
74    {
75       System.out.println("ReflectionAopPOJO method(boolean) ");
76    }
77
78    public void otherMethod(long l)
79    {
80       System.out.println("otherMethod");
81    }
82    
83    //Overridden method
84
public void method(int i, long l)
85    {
86       System.out.println("ReflectionAopPOJO method(int, long)");
87       if (1 == 0)
88          privateMethod(); // Just to avoid compiler warnings
89
}
90
91    private void privateMethod()
92    {
93       System.out.println("ReflectionAopPOJO privateMethod()");
94    }
95
96    public class AopPOJOInner
97    {
98    }
99 }
100
Popular Tags