All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sapia.ubik.rmi.examples.StatelessUbikBar Maven / Gradle / Ivy

The newest version!
package org.sapia.ubik.rmi.examples;

import java.util.HashMap;


/**
 * @author Yanick Duchesne
 * 
*
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
*
License:
Read the license.txt file of the jar or visit the * license page at the Sapia OSS web site
*
*/ public class StatelessUbikBar implements Bar { HashMap map = new HashMap(); int hashcode; public StatelessUbikBar(int hashCode) throws java.rmi.RemoteException { map.put("foo", "bar!!!"); hashcode = hashCode; } /** * @see org.sapia.ubik.rmi.Bar#getMsg() */ public String getMsg() { System.out.println("getMsg()... @" + Integer.toHexString(hashcode)); return ((String) map.get("foo")) + "@" + Integer.toHexString(hashcode); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy