tyrex.naming
public final class MemoryBinding extends Object
Provides heirarchial storage for name/value binding in memory that is exposed through the JNDI context model. Each context (not in the tree) is represented by one instance of MemoryBinding, with each sub-context (child node) or bound value represented by a name/value pair.
This object is thread-safe.
Version: $Revision: 1.11 $ $Date: 2001/09/17 16:45:09 $
Field Summary | |
---|---|
static int | INITIAL_CAPACITY
The initial capacity for the hashtable. |
static float | LOAD_FACTOR
The load factor for the hashtable. |
static int | MAXIMUM_CAPACITY
The maximum capacity for the hashtable. |
protected MemoryBinding | _parent
The parent memory binding. |
Constructor Summary | |
---|---|
MemoryBinding() |
Method Summary | |
---|---|
void | debug(PrintWriter writer)
Returns an array of all the sub-contexts of this binding. |
void | destroy()
Called when destroying the subcontext and binding associated
with it. |
protected NamingEnumeration | enumerate(Context context, boolean nameOnly) |
Object | get(String name) |
Context | getContext() |
String | getName() |
boolean | isEmpty() |
boolean | isRoot() |
void | put(String name, Object value) |
Object | remove(String name) |