Code example for Hashtable

Methods: cloneput

0
	 *      javax.naming.Name, javax.naming.Context, java.util.Hashtable) 
	 */ 
	public Object getObjectInstance(Object o, Name n, Context c, Hashtable<?, ?> h)
			throws Exception { 
 
		Hashtable<String, Object> r = new Hashtable<String, Object>();
		if (null != o) {
			r.put("o", o);
		} 
		if (null != n) {
			r.put("n", n);
		} 
		if (null != c) {
			r.put("c", c);
		} 
		if (null != h) {
			r.put("h", h);
		} 
		r.put("url.schema", "http");
		return new MockDirContext(r);
	} 
 
} 
Connect your IDE to all the code out there  Get Codota for Java