KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > cache > pojo > test > SpecialAddress


1 /*
2  * JBoss, Home of Professional Open Source
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7
8 package org.jboss.cache.pojo.test;
9
10 import java.io.Serializable JavaDoc;
11
12 /**
13  * Test class for PojoCache. Note that this pojo is both Replicable and Serializable. So
14  * user can choose whether to treat this as a Pojo or just a serializable object.
15  *
16  * @version $Revision: 1.2 $
17  */

18 @org.jboss.cache.pojo.annotation.Replicable
19 public class SpecialAddress implements Serializable JavaDoc
20 {
21    String JavaDoc addr = null;
22
23    public String JavaDoc getAddr()
24    {
25       return addr;
26    }
27
28    public void setAddr(String JavaDoc address)
29    {
30       this.addr = address;
31    }
32
33    public String JavaDoc toString()
34    {
35       return "address=" + getAddr();
36    }
37
38 // public Object writeReplace() {
39
// return this;
40
// }
41
}
42
Popular Tags