1 23 package fr.dyade.aaa.jndi2.impl; 24 25 import java.util.*; 26 import java.lang.ref.*; 27 28 public class SimpleContextTable 29 implements ContextTable, java.io.Serializable { 30 31 private Hashtable table; 32 33 public SimpleContextTable() { 34 table = new Hashtable(); 35 } 36 37 public void put(Object key, NamingContext nc) { 38 table.put(key, nc); 39 } 40 41 public NamingContext get(Object key) { 42 return (NamingContext)table.get(key); 43 } 44 45 public void remove(Object key) { 46 table.remove(key); 47 } 48 } 49 | Popular Tags |