public class ImmutableFederatedContext.NestedImmutableFederatedContext extends AbstractFederatedContext
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 and Description |
---|
ImmutableFederatedContext.NestedImmutableFederatedContext(String path,
Map<String,Object> bindings) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
addBinding(String name,
Object value,
boolean rebind) |
Context |
createNestedSubcontext(String path,
Map<String,Object> bindings)
Creates a nested subcontext instance.
|
protected Object |
getDeepBinding(String name)
Gets the object bound to the name.
|
protected Map<String,Object> |
getWrapperBindings() |
protected boolean |
removeBinding(String name,
boolean removeNotEmptyContext)
Removes the binding from the context.
|
addFederatedContext, faultLookup, getBinding, getBindings, getBindings, getMasterContext, isNestedSubcontext, removeFederatedContext
addBinding, addDeepBinding, addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, createSubcontextTree, destroySubcontext, destroySubcontext, 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, removeDeepBinding, removeFromEnvironment, rename, rename, unbind, unbind
public ImmutableFederatedContext.NestedImmutableFederatedContext(String path, Map<String,Object> bindings) throws NamingException
NamingException
public Context createNestedSubcontext(String path, Map<String,Object> bindings) throws NamingException
NestedContextFactory
path
- the path to the new nested contextbindings
- the initial bindings for the contextNamingException
- on errorprotected Object getDeepBinding(String name)
AbstractContext
getDeepBinding
in class AbstractFederatedContext
name
- the nameprotected Map<String,Object> getWrapperBindings() throws NamingException
getWrapperBindings
in class AbstractFederatedContext
NamingException
protected boolean addBinding(String name, Object value, boolean rebind) throws NamingException
addBinding
in class AbstractFederatedContext
NamingException
protected boolean removeBinding(String name, boolean removeNotEmptyContext) throws NamingException
AbstractContext
removeBinding
in class AbstractFederatedContext
name
- name under which the value should be boundremoveNotEmptyContext
- ??? TODO figure this outNamingException
- if a problem occurs during the bind such as a value already being boundCopyright © 2005-2012. All Rights Reserved.