public abstract class AbstractFederatedContext extends AbstractContext
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 |
---|
AbstractFederatedContext() |
AbstractFederatedContext(AbstractFederatedContext masterContext,
String nameInNamespace) |
AbstractFederatedContext(String nameInNamespace) |
AbstractFederatedContext(String nameInNamespace,
ContextAccess contextAccess) |
AbstractFederatedContext(String nameInNamespace,
ContextAccess contextAccess,
Set<Context> federatedContexts) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
addBinding(String name,
Object value,
boolean rebind) |
protected static void |
addFederatedContext(AbstractFederatedContext wrappingContext,
Context innerContext) |
protected Object |
faultLookup(String stringName,
Name parsedName)
When a value can not be found within this context, this method is called as a last ditch effort befrore
thowing a null pointer exception.
|
protected Object |
getBinding(String name)
Gets the object bound to the name.
|
protected Map<String,Object> |
getBindings()
Gets a map of the bindings for the current node (i.e., no names with slashes).
|
protected Map<String,Object> |
getBindings(String name) |
protected Object |
getDeepBinding(String name)
Gets the object bound to the name.
|
protected AbstractFederatedContext |
getMasterContext() |
protected abstract Map<String,Object> |
getWrapperBindings() |
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 static void |
removeFederatedContext(AbstractFederatedContext wrappingContext,
Context innerContext) |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createNestedSubcontext
public AbstractFederatedContext()
public AbstractFederatedContext(String nameInNamespace)
public AbstractFederatedContext(String nameInNamespace, ContextAccess contextAccess)
public AbstractFederatedContext(String nameInNamespace, ContextAccess contextAccess, Set<Context> federatedContexts)
public AbstractFederatedContext(AbstractFederatedContext masterContext, String nameInNamespace) throws NamingException
NamingException
protected Object faultLookup(String stringName, Name parsedName)
AbstractContext
faultLookup
in class AbstractContext
stringName
- the string version of the name; will not be nullparsedName
- the parsed name; will not be nullprotected Object getDeepBinding(String name)
AbstractContext
getDeepBinding
in class AbstractContext
name
- the nameprotected Object getBinding(String name) throws NamingException
AbstractContext
getBinding
in class AbstractContext
name
- the nameNamingException
- on errorprotected final Map<String,Object> getBindings() throws NamingException
AbstractContext
getBindings
in class AbstractContext
NamingException
- if a problem occurs while getting the bindignsprotected final Map<String,Object> getBindings(String name) throws NamingException
NamingException
protected abstract Map<String,Object> getWrapperBindings() throws NamingException
NamingException
protected boolean addBinding(String name, Object value, boolean rebind) throws NamingException
addBinding
in class AbstractContext
NamingException
protected 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 outNamingException
- if a problem occurs during the bind such as a value already being boundprotected static void addFederatedContext(AbstractFederatedContext wrappingContext, Context innerContext) throws NamingException
NamingException
protected static void removeFederatedContext(AbstractFederatedContext wrappingContext, Context innerContext) throws NamingException
NamingException
public boolean isNestedSubcontext(Object value)
NestedContextFactory
value
- the value to inspectprotected AbstractFederatedContext getMasterContext()
Copyright © 2005-2015. All Rights Reserved.