|
||||||||||
| 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,
String nameInNamespace)
|
|
AbstractFederatedContext(String nameInNamespace)
|
|
AbstractFederatedContext(String nameInNamespace,
ContextAccess contextAccess)
|
|
AbstractFederatedContext(String nameInNamespace,
ContextAccess contextAccess,
Set<Context> federatedContexts)
|
|
| Method Summary | |
|---|---|
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)
|
| 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(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| Method Detail |
|---|
protected Object faultLookup(String stringName,
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 Object getDeepBinding(String name)
AbstractContext
getDeepBinding in class AbstractContextname - the name
protected Object getBinding(String name)
throws NamingException
AbstractContext
getBinding in class AbstractContextname - the name
NamingException - on error
protected final Map<String,Object> getBindings()
throws NamingException
AbstractContext
getBindings in class AbstractContextNamingException - if a problem occurs while getting the bindigns
protected 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 AbstractContextNamingException
protected boolean removeBinding(String name,
boolean removeNotEmptyContext)
throws NamingException
AbstractContext
removeBinding in class AbstractContextname - name under which the value should be boundremoveNotEmptyContext - ??? TODO figure this out
NamingException - if a problem occurs during the bind such as a value already being bound
protected static void addFederatedContext(AbstractFederatedContext wrappingContext,
Context innerContext)
throws NamingException
NamingException
protected static void removeFederatedContext(AbstractFederatedContext wrappingContext,
Context innerContext)
throws NamingException
NamingExceptionpublic boolean isNestedSubcontext(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 | |||||||||