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, unbindclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateNestedSubcontextpublic 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
NamingExceptionprotected Object faultLookup(String stringName, Name parsedName)
AbstractContextfaultLookup in class AbstractContextstringName - the string version of the name; will not be nullparsedName - the parsed name; will not be nullprotected Object getDeepBinding(String name)
AbstractContextgetDeepBinding in class AbstractContextname - the nameprotected Object getBinding(String name) throws NamingException
AbstractContextgetBinding in class AbstractContextname - the nameNamingException - on errorprotected final Map<String,Object> getBindings() throws NamingException
AbstractContextgetBindings in class AbstractContextNamingException - if a problem occurs while getting the bindignsprotected final Map<String,Object> getBindings(String name) throws NamingException
NamingExceptionprotected abstract Map<String,Object> getWrapperBindings() throws NamingException
NamingExceptionprotected boolean addBinding(String name, Object value, boolean rebind) throws NamingException
addBinding in class AbstractContextNamingExceptionprotected boolean removeBinding(String name, boolean removeNotEmptyContext) throws NamingException
AbstractContextremoveBinding in class AbstractContextname - 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
NamingExceptionprotected static void removeFederatedContext(AbstractFederatedContext wrappingContext, Context innerContext) throws NamingException
NamingExceptionpublic boolean isNestedSubcontext(Object value)
NestedContextFactoryvalue - the value to inspectprotected AbstractFederatedContext getMasterContext()
Copyright © 2005-2015 The Apache Software Foundation. All Rights Reserved.