KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > ubik > rmi > examples > UbikBar


1 package org.sapia.ubik.rmi.examples;
2
3 import java.util.HashMap JavaDoc;
4
5
6 /**
7  * @author Yanick Duchesne
8  * <dl>
9  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
10  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
11  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
12  * </dl>
13  */

14 public class UbikBar implements Bar {
15   HashMap JavaDoc map = new HashMap JavaDoc();
16
17   public UbikBar() throws java.rmi.RemoteException JavaDoc {
18     map.put("foo", "bar!!!");
19   }
20
21   /**
22    * @see org.sapia.ubik.rmi.Bar#getMsg()
23    */

24   public String JavaDoc getMsg() {
25     System.out.println("getMsg()...");
26
27     return (String JavaDoc) map.get("foo");
28   }
29 }
30
Popular Tags