Methods Summary |
---|
public synchronized void | bind(java.lang.String name, Context context)
if ((null == name) || (null == context)) {
return;
}
Object priorValue = _namesToContexts.get(name);
if (null != priorValue) {
throw new BindingException("Attempt to bind context to an already bound name.");
}
_namesToContexts.put(name, context);
return;
|
public synchronized ContextList | list()
return new ContextList(_namesToContexts.values());
|
public synchronized Context | lookup(java.lang.String name)
if (null == name) {
return null;
}
return (Context) _namesToContexts.get(name);
|
public synchronized void | rebind(java.lang.String name, Context context)
if (null == name) {
return;
}
if (null == context) {
_namesToContexts.remove(name);
return;
}
_namesToContexts.put(name, context);
return;
|
public synchronized void | unbind(java.lang.String name)
if (null == name) {
return;
}
_namesToContexts.remove(name);
return;
|