KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > cache > tests > aop > Address


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

7 package org.jboss.cache.tests.aop;
8
9
10
11 /**
12  * Test class for TreeCacheAOP.
13  *
14  * @version $Revision: 1.2 $
15  * <p>Below is the annotation that signifies this class is "prepared" under JBossAop. This is used in
16  * conjunction with a special jboss-aop.xml (supplied by JBossCache). In addition, this is JDK1.4 style,
17  * so a annoc Ant build target is needed to pre-compile it.</p>
18  * <p>To use this approach, just apply this line to your pojo and run annoc (and possibly aopc).</p>
19  * @@org.jboss.cache.aop.AopMarker
20  */

21 public class Address
22 {
23    String JavaDoc street = null;
24    String JavaDoc city = null;
25    int zip = 0;
26
27    public String JavaDoc getStreet()
28    {
29       return street;
30    }
31
32    public void setStreet(String JavaDoc street)
33    {
34       this.street = street;
35    }
36
37    public String JavaDoc getCity()
38    {
39       return city;
40    }
41
42    public void setCity(String JavaDoc city)
43    {
44       this.city = city;
45    }
46
47    public int getZip()
48    {
49       return zip;
50    }
51
52    public void setZip(int zip)
53    {
54       this.zip = zip;
55    }
56
57    public String JavaDoc toString()
58    {
59       return "street=" + getStreet() + ", city=" + getCity() + ", zip=" + getZip();
60    }
61
62 // public Object writeReplace() {
63
// return this;
64
// }
65
}
66
Popular Tags