public abstract class AbstractFederatedContext extends AbstractContext
| Constructor and Description |
|---|
AbstractFederatedContext() |
AbstractFederatedContext(AbstractFederatedContext masterContext,
java.lang.String nameInNamespace) |
AbstractFederatedContext(java.lang.String nameInNamespace) |
AbstractFederatedContext(java.lang.String nameInNamespace,
ContextAccess contextAccess) |
AbstractFederatedContext(java.lang.String nameInNamespace,
ContextAccess contextAccess,
java.util.Set<javax.naming.Context> federatedContexts) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addBinding(java.lang.String name,
java.lang.Object value,
boolean rebind) |
protected static void |
addFederatedContext(AbstractFederatedContext wrappingContext,
javax.naming.Context innerContext) |
protected java.lang.Object |
faultLookup(java.lang.String stringName,
javax.naming.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 java.lang.Object |
getBinding(java.lang.String name)
Gets the object bound to the name.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getBindings()
Gets a map of the bindings for the current node (i.e., no names with slashes).
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getBindings(java.lang.String name) |
protected java.lang.Object |
getDeepBinding(java.lang.String name)
Gets the object bound to the name.
|
protected AbstractFederatedContext |
getMasterContext() |
protected abstract java.util.Map<java.lang.String,java.lang.Object> |
getWrapperBindings() |
boolean |
isNestedSubcontext(java.lang.Object value)
Is the specified value an instance of a nested context
|
protected boolean |
removeBinding(java.lang.String name,
boolean removeNotEmptyContext)
Removes the binding from the context.
|
protected static void |
removeFederatedContext(AbstractFederatedContext wrappingContext,
javax.naming.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(java.lang.String nameInNamespace)
public AbstractFederatedContext(java.lang.String nameInNamespace,
ContextAccess contextAccess)
public AbstractFederatedContext(java.lang.String nameInNamespace,
ContextAccess contextAccess,
java.util.Set<javax.naming.Context> federatedContexts)
public AbstractFederatedContext(AbstractFederatedContext masterContext, java.lang.String nameInNamespace) throws javax.naming.NamingException
javax.naming.NamingExceptionprotected java.lang.Object faultLookup(java.lang.String stringName,
javax.naming.Name parsedName)
AbstractContextfaultLookup in class AbstractContextstringName - the string version of the name; will not be nullparsedName - the parsed name; will not be nullprotected java.lang.Object getDeepBinding(java.lang.String name)
AbstractContextgetDeepBinding in class AbstractContextname - the nameprotected java.lang.Object getBinding(java.lang.String name)
throws javax.naming.NamingException
AbstractContextgetBinding in class AbstractContextname - the namejavax.naming.NamingException - on errorprotected final java.util.Map<java.lang.String,java.lang.Object> getBindings()
throws javax.naming.NamingException
AbstractContextgetBindings in class AbstractContextjavax.naming.NamingException - if a problem occurs while getting the bindignsprotected final java.util.Map<java.lang.String,java.lang.Object> getBindings(java.lang.String name)
throws javax.naming.NamingException
javax.naming.NamingExceptionprotected abstract java.util.Map<java.lang.String,java.lang.Object> getWrapperBindings()
throws javax.naming.NamingException
javax.naming.NamingExceptionprotected boolean addBinding(java.lang.String name,
java.lang.Object value,
boolean rebind)
throws javax.naming.NamingException
addBinding in class AbstractContextjavax.naming.NamingExceptionprotected boolean removeBinding(java.lang.String name,
boolean removeNotEmptyContext)
throws javax.naming.NamingException
AbstractContextremoveBinding in class AbstractContextname - name under which the value should be boundremoveNotEmptyContext - ??? TODO figure this outjavax.naming.NamingException - if a problem occurs during the bind such as a value already being boundprotected static void addFederatedContext(AbstractFederatedContext wrappingContext, javax.naming.Context innerContext) throws javax.naming.NamingException
javax.naming.NamingExceptionprotected static void removeFederatedContext(AbstractFederatedContext wrappingContext, javax.naming.Context innerContext) throws javax.naming.NamingException
javax.naming.NamingExceptionpublic boolean isNestedSubcontext(java.lang.Object value)
NestedContextFactoryvalue - the value to inspectprotected AbstractFederatedContext getMasterContext()