Package org.wildfly.naming.client.store
Class RelativeFederatingContext
java.lang.Object
org.wildfly.naming.client.AbstractContext
org.wildfly.naming.client.AbstractFederatingContext
org.wildfly.naming.client.store.RelativeFederatingContext
- All Implemented Interfaces:
AutoCloseable,Context
A context which is a relative subcontext of a root context.
- Author:
- David M. Lloyd
-
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
ConstructorsConstructorDescriptionRelativeFederatingContext(FastHashtable<String, Object> environment, AbstractContext rootContext, CompositeName prefix) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbindNative(Name name, Object obj) voidclose()protected ContextcreateSubcontextNative(Name name) protected voiddestroySubcontextNative(Name name) Get the native name parser for this context.protected CloseableNamingEnumeration<Binding>listBindingsNative(Name name) protected CloseableNamingEnumeration<NameClassPair>listNative(Name name) protected ObjectlookupLinkNative(Name name) protected ObjectlookupNative(Name name) Look up a compound name within this naming system.protected voidrebindNative(Name name, Object obj) protected voidrenameNative(Name oldName, Name newName) protected voidunbindNative(Name name) Methods inherited from class org.wildfly.naming.client.AbstractFederatingContext
bind, bind, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getNameParser, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, rename, rename, unbind, unbindMethods inherited from class org.wildfly.naming.client.AbstractContext
addToEnvironment, decomposeName, getEnvironment, nameNotFound, notSupported, readOnlyContext, removeFromEnvironment
-
Constructor Details
-
RelativeFederatingContext
public RelativeFederatingContext(FastHashtable<String, Object> environment, AbstractContext rootContext, CompositeName prefix)
-
-
Method Details
-
lookupNative
Description copied from class:AbstractContextLook up a compound name within this naming system. The given name is guaranteed not to be aCompositeName.- Specified by:
lookupNativein classAbstractContext- Parameters:
name- the (compound) name (notnull)- Returns:
- the binding value
- Throws:
NamingException- if an error occurs
-
bindNative
- Overrides:
bindNativein classAbstractContext- Throws:
NamingException
-
rebindNative
- Overrides:
rebindNativein classAbstractContext- Throws:
NamingException
-
unbindNative
- Overrides:
unbindNativein classAbstractContext- Throws:
NamingException
-
renameNative
- Overrides:
renameNativein classAbstractContext- Throws:
NamingException
-
listNative
- Specified by:
listNativein classAbstractContext- Throws:
NamingException
-
listBindingsNative
- Specified by:
listBindingsNativein classAbstractContext- Throws:
NamingException
-
destroySubcontextNative
- Overrides:
destroySubcontextNativein classAbstractContext- Throws:
NamingException
-
createSubcontextNative
- Overrides:
createSubcontextNativein classAbstractContext- Throws:
NamingException
-
lookupLinkNative
- Specified by:
lookupLinkNativein classAbstractContext- Throws:
NamingException
-
close
public void close() -
getNameInNamespace
- Throws:
NamingException
-
getNativeNameParser
Description copied from class:AbstractContextGet the native name parser for this context. The name parser should always yield a compound name; returning a composite name may cause undefined results or infinite loops or recursion. The default implementation returns a name parser forSimpleNameinstances but may be overridden as desired.- Overrides:
getNativeNameParserin classAbstractContext- Returns:
- the name parser
-