org.apache.xbean.naming.context
public class ImmutableContext extends AbstractContext
Modifier and Type | Class and Description |
---|---|
class |
ImmutableContext.NestedImmutableContext
Nested context which shares the absolute index map in MapContext.
|
Constructor and Description |
---|
ImmutableContext(java.util.Map<java.lang.String,java.lang.Object> bindings) |
ImmutableContext(java.util.Map<java.lang.String,java.lang.Object> bindings,
boolean cacheReferences) |
ImmutableContext(java.lang.String nameInNamespace,
java.util.Map<java.lang.String,java.lang.Object> bindings,
boolean cacheReferences) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
addBinding(java.lang.String name,
java.lang.Object value,
boolean rebind) |
protected void |
addDeepBinding(java.lang.String name,
java.lang.Object value,
boolean createIntermediateContexts) |
javax.naming.Context |
createNestedSubcontext(java.lang.String path,
java.util.Map bindings)
Creates a nested subcontext instance.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getBindings()
Gets a map of the bindings for the current node (i.e., no names with slashes).
|
protected java.lang.Object |
getDeepBinding(java.lang.String name)
Gets the object bound to the name.
|
boolean |
isNestedSubcontext(java.lang.Object value)
Is the specified value an instance of a nested context
|
protected boolean |
removeBinding(java.lang.String name,
boolean removeNotEmptyContext)
Removes the binding from the context.
|
protected void |
removeDeepBinding(javax.naming.Name name,
boolean pruneEmptyContexts) |
addBinding, addDeepBinding, addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, createSubcontextTree, destroySubcontext, destroySubcontext, faultLookup, getBinding, getContextAccess, getEnvironment, getNameInNamespace, getNameInNamespace, getNameInNamespace, getNameParser, getNameParser, getNameParser, getParsedNameInNamespace, getSize, isEmpty, list, list, list, listBindings, listBindings, listBindings, lookup, lookup, lookup, lookupFinalContext, lookupLink, lookupLink, rebind, rebind, removeDeepBinding, removeFromEnvironment, rename, rename, unbind, unbind
public ImmutableContext(java.util.Map<java.lang.String,java.lang.Object> bindings) throws javax.naming.NamingException
javax.naming.NamingException
public ImmutableContext(java.util.Map<java.lang.String,java.lang.Object> bindings, boolean cacheReferences) throws javax.naming.NamingException
javax.naming.NamingException
public ImmutableContext(java.lang.String nameInNamespace, java.util.Map<java.lang.String,java.lang.Object> bindings, boolean cacheReferences) throws javax.naming.NamingException
javax.naming.NamingException
protected java.lang.Object getDeepBinding(java.lang.String name)
AbstractContext
getDeepBinding
in class AbstractContext
name
- the nameprotected java.util.Map<java.lang.String,java.lang.Object> getBindings()
AbstractContext
getBindings
in class AbstractContext
protected final void addDeepBinding(java.lang.String name, java.lang.Object value, boolean createIntermediateContexts) throws javax.naming.NamingException
javax.naming.NamingException
protected final boolean addBinding(java.lang.String name, java.lang.Object value, boolean rebind) throws javax.naming.NamingException
addBinding
in class AbstractContext
javax.naming.NamingException
protected final void removeDeepBinding(javax.naming.Name name, boolean pruneEmptyContexts) throws javax.naming.NamingException
removeDeepBinding
in class AbstractContext
javax.naming.NamingException
protected final boolean removeBinding(java.lang.String name, boolean removeNotEmptyContext) throws javax.naming.NamingException
AbstractContext
removeBinding
in class AbstractContext
name
- name under which the value should be boundremoveNotEmptyContext
- ??? TODO figure this outjavax.naming.NamingException
- if a problem occurs during the bind such as a value already being boundpublic boolean isNestedSubcontext(java.lang.Object value)
NestedContextFactory
value
- the value to inspectpublic javax.naming.Context createNestedSubcontext(java.lang.String path, java.util.Map bindings)
NestedContextFactory
path
- the path to the new nested contextbindings
- the initial bindings for the contextCopyright © 2005-2014. All Rights Reserved.