01: /**
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */package mx4j.examples.services.relation;
08:
09: /**
10: * @version $Revision: 1.1 $
11: */
12: interface SimpleBooksMBean {
13: public void setBook(String bookName);
14:
15: public String getBook();
16: }
17:
18: public class SimpleBooks implements SimpleBooksMBean {
19: private String m_name = null;
20:
21: public SimpleBooks(String bookName) {
22: m_name = bookName;
23: }
24:
25: public void setBook(String bookName) {
26: m_name = bookName;
27: }
28:
29: public String getBook() {
30: return m_name;
31: }
32: }
|