Serializable, Context, NestedContextFactorypublic class WritableContext extends AbstractFederatedContext
| Modifier and Type | Class | Description |
|---|---|---|
class |
WritableContext.NestedWritableContext |
Nested context which shares the absolute index map in MapContext.
|
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 | Description |
|---|---|
WritableContext() |
|
WritableContext(String nameInNamespace) |
|
WritableContext(String nameInNamespace,
Map<String,Object> bindings) |
|
WritableContext(String nameInNamespace,
Map<String,Object> bindings,
boolean cacheReferences) |
|
WritableContext(String nameInNamespace,
Map<String,Object> bindings,
ContextAccess contextAccess) |
|
WritableContext(String nameInNamespace,
Map<String,Object> bindings,
ContextAccess contextAccess,
boolean cacheReferences) |
|
WritableContext(String nameInNamespace,
Map<String,Object> bindings,
ContextAccess contextAccess,
boolean cacheReferences,
boolean supportReferenceable,
boolean checkDereferenceDifferent,
boolean assumeDereferenceBound) |
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
addBinding(String name,
Object value,
boolean rebind) |
|
protected void |
addBinding(AtomicReference<Map<String,Object>> bindingsRef,
String name,
String nameInNamespace,
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.
|
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, unbindaddFederatedContext, faultLookup, getBinding, getBindings, getBindings, getMasterContext, isNestedSubcontext, removeFederatedContextpublic WritableContext()
throws NamingException
NamingExceptionpublic WritableContext(String nameInNamespace) throws NamingException
NamingExceptionpublic WritableContext(String nameInNamespace, Map<String,Object> bindings) throws NamingException
NamingExceptionpublic WritableContext(String nameInNamespace, Map<String,Object> bindings, boolean cacheReferences) throws NamingException
NamingExceptionpublic WritableContext(String nameInNamespace, Map<String,Object> bindings, ContextAccess contextAccess) throws NamingException
NamingExceptionpublic WritableContext(String nameInNamespace, Map<String,Object> bindings, ContextAccess contextAccess, boolean cacheReferences) throws NamingException
NamingExceptionpublic WritableContext(String nameInNamespace, Map<String,Object> bindings, ContextAccess contextAccess, boolean cacheReferences, boolean supportReferenceable, boolean checkDereferenceDifferent, boolean assumeDereferenceBound) throws NamingException
NamingExceptionprotected boolean addBinding(String name, Object value, boolean rebind) throws NamingException
addBinding in class AbstractFederatedContextNamingExceptionprotected void addBinding(AtomicReference<Map<String,Object>> bindingsRef, String name, String nameInNamespace, Object value, boolean rebind) throws NamingException
NamingExceptionprotected boolean removeBinding(String name, boolean removeNotEmptyContext) throws NamingException
AbstractContextremoveBinding in class AbstractFederatedContextname - 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 boundpublic Context createNestedSubcontext(String path, Map<String,Object> bindings) throws NamingException
NestedContextFactorypath - the path to the new nested contextbindings - the initial bindings for the contextNamingException - on errorprotected Object getDeepBinding(String name)
AbstractContextgetDeepBinding in class AbstractFederatedContextname - the nameprotected Map<String,Object> getWrapperBindings() throws NamingException
getWrapperBindings in class AbstractFederatedContextNamingExceptionCopyright © 2005–2018. All rights reserved.