|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xbean.naming.context.AbstractContext
org.apache.xbean.naming.context.AbstractFederatedContext
public abstract class AbstractFederatedContext
| Field Summary |
|---|
| Fields inherited from interface javax.naming.Context |
|---|
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 Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.apache.xbean.naming.context.AbstractContext |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.xbean.naming.context.NestedContextFactory |
|---|
createNestedSubcontext |
| Constructor Detail |
|---|
public 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.NamingException| Method Detail |
|---|
protected java.lang.Object faultLookup(java.lang.String stringName,
javax.naming.Name parsedName)
AbstractContext
faultLookup in class AbstractContextstringName - the string version of the name; will not be nullparsedName - the parsed name; will not be null
protected java.lang.Object getDeepBinding(java.lang.String name)
AbstractContext
getDeepBinding in class AbstractContextname - the name
protected java.lang.Object getBinding(java.lang.String name)
throws javax.naming.NamingException
AbstractContext
getBinding in class AbstractContextname - the name
javax.naming.NamingException - on error
protected final java.util.Map<java.lang.String,java.lang.Object> getBindings()
throws javax.naming.NamingException
AbstractContext
getBindings in class AbstractContextjavax.naming.NamingException - if a problem occurs while getting the bindigns
protected final java.util.Map<java.lang.String,java.lang.Object> getBindings(java.lang.String name)
throws javax.naming.NamingException
javax.naming.NamingException
protected abstract java.util.Map<java.lang.String,java.lang.Object> getWrapperBindings()
throws javax.naming.NamingException
javax.naming.NamingException
protected boolean addBinding(java.lang.String name,
java.lang.Object value,
boolean rebind)
throws javax.naming.NamingException
addBinding in class AbstractContextjavax.naming.NamingException
protected boolean removeBinding(java.lang.String name,
boolean removeNotEmptyContext)
throws javax.naming.NamingException
AbstractContext
removeBinding in class AbstractContextname - name under which the value should be boundremoveNotEmptyContext - ??? TODO figure this out
javax.naming.NamingException - if a problem occurs during the bind such as a value already being bound
protected static void addFederatedContext(AbstractFederatedContext wrappingContext,
javax.naming.Context innerContext)
throws javax.naming.NamingException
javax.naming.NamingException
protected static void removeFederatedContext(AbstractFederatedContext wrappingContext,
javax.naming.Context innerContext)
throws javax.naming.NamingException
javax.naming.NamingExceptionpublic boolean isNestedSubcontext(java.lang.Object value)
NestedContextFactory
value - the value to inspect
protected AbstractFederatedContext getMasterContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||