01: package org.osbl.client.wings.form;
02:
03: import java.util.Map;
04: import java.util.HashMap;
05:
06: public class ObjectContext {
07: Map map = new HashMap();
08:
09: public void putObject(String key, Object object) {
10: System.out
11: .println("Context putObject: " + key + " = " + object);
12: if (object != null)
13: map.put(key, object);
14: else
15: map.remove(key);
16: }
17:
18: public Object getObject(String key) {
19: System.out.println("Context getObject: " + key + " = "
20: + map.get(key));
21: return map.get(key);
22: }
23: }
|