KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.sapia.ubik.rmi.examples;
2
3 import java.rmi.server.UnicastRemoteObject JavaDoc;
4
5 import java.util.HashMap JavaDoc;
6
7
8 /**
9  * @author Yanick Duchesne
10  * <dl>
11  * <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>
12  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
13  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
14  * </dl>
15  */

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

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