org.media.naming
Class MemoryBinding
java.lang.Object
|
+--org.media.naming.MemoryBinding
- public final class MemoryBinding
- extends java.lang.Object
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.
This class was inspired by the tyrex.naming package from the
Tyrex project.
All credits for the good stuff should go to Assaf Arkin and
the Exolab group,
all the bad stuff blame it on
me :).
- Version:
- $Revision: 1.2 $ $Date: 2001/06/04 10:23:21 $
- Author:
- Remus Pereni
Method Summary |
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 |
INITIAL_CAPACITY
public static final int INITIAL_CAPACITY
- The initial capacity for the hashtable.
MAXIMUM_CAPACITY
public static final int MAXIMUM_CAPACITY
- The maximum capacity for the hashtable.
LOAD_FACTOR
public static final float LOAD_FACTOR
- The load factor for the hashtable.
_parent
protected MemoryBinding _parent
- The parent memory binding.
MemoryBinding
public MemoryBinding()
getContext
public javax.naming.Context getContext()
get
public java.lang.Object get(java.lang.String name)
put
public void put(java.lang.String name,
java.lang.Object value)
remove
public java.lang.Object remove(java.lang.String name)
getName
public java.lang.String getName()
isRoot
public boolean isRoot()
isEmpty
public boolean isEmpty()
destroy
public void destroy()
- Called when destroying the subcontext and binding associated
with it.
enumerate
protected javax.naming.NamingEnumeration enumerate(javax.naming.Context context,
boolean nameOnly)
"Copyright © 2001 Internet Multicasting Services & media.org. All Rights Reserved."