|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xbean.naming.context.AbstractContext
org.apache.xbean.naming.context.ImmutableContext.NestedImmutableContext
public final class ImmutableContext.NestedImmutableContext
Nested context which shares the absolute index map in MapContext.
Field Summary |
---|
Fields inherited from interface javax.naming.Context |
---|
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES |
Constructor Summary | |
---|---|
ImmutableContext.NestedImmutableContext(String path,
Map<String,Object> bindings)
|
Method Summary | |
---|---|
protected boolean |
addBinding(String name,
Object value,
boolean rebind)
|
protected void |
addDeepBinding(String name,
Object value,
boolean createIntermediateContexts)
|
Context |
createNestedSubcontext(String path,
Map<String,Object> bindings)
Creates a nested subcontext instance. |
protected Map<String,Object> |
getBindings()
Gets a map of the bindings for the current node (i.e., no names with slashes). |
protected Object |
getDeepBinding(String name)
Gets the object bound to the name. |
protected ImmutableContext |
getImmutableContext()
|
boolean |
isNestedSubcontext(Object value)
Is the specified value an instance of a nested context |
protected boolean |
removeBinding(String name,
boolean removeNotEmptyContext)
Removes the binding from the context. |
protected void |
removeDeepBinding(Name name,
boolean pruneEmptyContexts)
|
Methods inherited from class org.apache.xbean.naming.context.AbstractContext |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImmutableContext.NestedImmutableContext(String path, Map<String,Object> bindings)
Method Detail |
---|
protected Object getDeepBinding(String name)
AbstractContext
getDeepBinding
in class AbstractContext
name
- the name
protected Map<String,Object> getBindings()
AbstractContext
getBindings
in class AbstractContext
protected final void addDeepBinding(String name, Object value, boolean createIntermediateContexts) throws NamingException
NamingException
protected final boolean addBinding(String name, Object value, boolean rebind) throws NamingException
addBinding
in class AbstractContext
NamingException
protected final void removeDeepBinding(Name name, boolean pruneEmptyContexts) throws NamingException
removeDeepBinding
in class AbstractContext
NamingException
protected final boolean removeBinding(String name, boolean removeNotEmptyContext) throws NamingException
AbstractContext
removeBinding
in class AbstractContext
name
- name under which the value should be boundremoveNotEmptyContext
- ??? TODO figure this out
NamingException
- if a problem occurs during the bind such as a value already being boundpublic boolean isNestedSubcontext(Object value)
NestedContextFactory
value
- the value to inspect
public Context createNestedSubcontext(String path, Map<String,Object> bindings)
NestedContextFactory
path
- the path to the new nested contextbindings
- the initial bindings for the context
protected ImmutableContext getImmutableContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |