|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tyrex.naming.MemoryBinding
Name/value bindings for use inside MemoryContext
.
This one is never constructed directly but through MemoryContext
, MemoryContextFactory
and related classes.
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.
Field Summary | |
protected MemoryBinding |
_parent
The parent memory binding. |
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. |
Constructor Summary | |
MemoryBinding()
|
Method Summary | |
(package private) void |
debug(java.io.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 javax.naming.NamingEnumeration |
enumerate(javax.naming.Context context,
boolean nameOnly)
|
java.lang.Object |
get(java.lang.String name)
|
javax.naming.Context |
getContext()
|
java.lang.String |
getName()
|
boolean |
isEmpty()
|
boolean |
isRoot()
|
void |
put(java.lang.String name,
java.lang.Object value)
|
java.lang.Object |
remove(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int INITIAL_CAPACITY
public static final int MAXIMUM_CAPACITY
public static final float LOAD_FACTOR
protected MemoryBinding _parent
Constructor Detail |
public MemoryBinding()
Method Detail |
public javax.naming.Context getContext()
public java.lang.Object get(java.lang.String name)
public void put(java.lang.String name, java.lang.Object value)
public java.lang.Object remove(java.lang.String name)
public java.lang.String getName()
public boolean isRoot()
public boolean isEmpty()
public void destroy()
void debug(java.io.PrintWriter writer)
protected javax.naming.NamingEnumeration enumerate(javax.naming.Context context, boolean nameOnly)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |