public class WritableContext extends AbstractFederatedContext
Modifier and Type | Class and 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 and 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 and Description |
---|---|
protected void |
addBinding(AtomicReference<Map<String,Object>> bindingsRef,
String name,
String nameInNamespace,
Object value,
boolean rebind) |
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 WritableContext() throws NamingException
NamingException
public WritableContext(String nameInNamespace) throws NamingException
NamingException
public WritableContext(String nameInNamespace, Map<String,Object> bindings) throws NamingException
NamingException
public WritableContext(String nameInNamespace, Map<String,Object> bindings, boolean cacheReferences) throws NamingException
NamingException
public WritableContext(String nameInNamespace, Map<String,Object> bindings, ContextAccess contextAccess) throws NamingException
NamingException
public WritableContext(String nameInNamespace, Map<String,Object> bindings, ContextAccess contextAccess, boolean cacheReferences) throws NamingException
NamingException
public WritableContext(String nameInNamespace, Map<String,Object> bindings, ContextAccess contextAccess, boolean cacheReferences, boolean supportReferenceable, boolean checkDereferenceDifferent, boolean assumeDereferenceBound) throws NamingException
NamingException
protected boolean addBinding(String name, Object value, boolean rebind) throws NamingException
addBinding
in class AbstractFederatedContext
NamingException
protected void addBinding(AtomicReference<Map<String,Object>> bindingsRef, String name, String nameInNamespace, Object value, boolean rebind) throws NamingException
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 boundpublic 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
Copyright © 2005-2014. All Rights Reserved.