Package fr.dyade.aaa.jndi2.impl
Class ContextCache
- java.lang.Object
-
- fr.dyade.aaa.jndi2.impl.ContextCache
-
- All Implemented Interfaces:
ContextTable
public class ContextCache extends Object implements ContextTable
-
-
Field Summary
Fields Modifier and Type Field Description private Hashtable<Object,SoftReference<NamingContext>>table
-
Constructor Summary
Constructors Constructor Description ContextCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamingContextget(Object key)voidput(Object key, NamingContext nc)voidremove(Object key)
-
-
-
Field Detail
-
table
private Hashtable<Object,SoftReference<NamingContext>> table
-
-
Method Detail
-
put
public void put(Object key, NamingContext nc)
- Specified by:
putin interfaceContextTable
-
get
public NamingContext get(Object key)
- Specified by:
getin interfaceContextTable
-
remove
public void remove(Object key)
- Specified by:
removein interfaceContextTable
-
-