KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > examples > services > relation > SimpleOwner


1 /**
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8 package mx4j.examples.services.relation;
9
10 /**
11  * @version $Revision: 1.3 $
12  */

13 interface SimpleOwnerMBean
14 {
15    public void setOwnerName(String JavaDoc ownerName);
16
17    public String JavaDoc getOwnerName();
18 }
19
20 public class SimpleOwner implements SimpleOwnerMBean
21 {
22    private String JavaDoc m_name = null;
23
24    public SimpleOwner(String JavaDoc name)
25    {
26       m_name = name;
27    }
28
29    public void setOwnerName(String JavaDoc name)
30    {
31       m_name = name;
32    }
33
34    public String JavaDoc getOwnerName()
35    {
36       return m_name;
37    }
38 }
Popular Tags