KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > jbossnet > admindevel > HelloObj


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.test.jbossnet.admindevel;
8
9
10 /** A custom data object class that needs to specify a custom serializer
11  *
12  * @jboss-net.xml-schema urn="hello:HelloObj"
13  */

14 public class HelloObj implements java.io.Serializable JavaDoc
15 {
16    static final long serialVersionUID = 9104187002831663110L;
17    private String JavaDoc msg;
18
19    public HelloObj()
20    {
21       this(null);
22    }
23    public HelloObj(String JavaDoc msg)
24    {
25       this.msg = msg;
26    }
27
28    public String JavaDoc getMsg()
29    {
30       return this.msg;
31    }
32    public void setMsg(String JavaDoc msg)
33    {
34       this.msg = msg;
35    }
36 }
37
Popular Tags