Class AbstractContext
java.lang.Object
com.zfabrik.naming.jndi.provider.util.AbstractContext
- All Implemented Interfaces:
Context
Helper JNDI context. Reduces necessary operations to
methods that only work on the local naming scheme (see the protected methods)
-
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddToEnvironment(String propName, Object propVal) voidvoidvoidclose()composeName(String name, String prefix) composeName(Name name, Name prefix) createSubcontext(String name) createSubcontext(Name name) voiddestroySubcontext(String name) voiddestroySubcontext(Name name) protected voidBindOperationprotected Contextlookup of continuation context.doCreateSubcontext(String name) voiddoDestroySubcontext(String name) doGetNameParser(String name) protected NamingEnumeration<NameClassPair>Listprotected NamingEnumeration<Binding>doListBindings(String localName) local List Bindingsprotected Objectoverwrite to provide lookup (local name)doLookupLink(String name) protected voidBindOperationprotected voidRenameprotected voidUnbindprotected Contextaccess to continuation contextHashtable<?,?> getNameParser(String name) getNameParser(Name name) listBindings(String name) listBindings(Name name) lookupLink(String name) lookupLink(Name name) protected ObjectprepareState(String name, Object obj) prepares an object for binding by resolving state transitions and Referencable etc.voidvoidremoveFromEnvironment(String propName) voidvoidvoidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.naming.Context
getNameInNamespace
-
Field Details
-
env
-
-
Constructor Details
-
AbstractContext
-
-
Method Details
-
getContinuationContext
access to continuation context- Throws:
NamingException
-
prepareState
prepares an object for binding by resolving state transitions and Referencable etc.Note: requires implementation of doGetNameParser in order to retrieve a good local name representation
- Parameters:
name-obj-- Returns:
- a prepared object for binding
- Throws:
NamingException
-
lookup
- Specified by:
lookupin interfaceContext- Throws:
NamingException- See Also:
-
doContinuationContextLookup
lookup of continuation context. NOTE: usually this is crucial to avoid applications of object factories during continuation lookup!!- Throws:
NamingException
-
doLookup
overwrite to provide lookup (local name)- Throws:
NamingException
-
lookup
- Specified by:
lookupin interfaceContext- Throws:
NamingException- See Also:
-
bind
- Specified by:
bindin interfaceContext- Throws:
NamingException- See Also:
-
doBind
BindOperation- Throws:
NamingException
-
bind
- Specified by:
bindin interfaceContext- Throws:
NamingException- See Also:
-
rebind
- Specified by:
rebindin interfaceContext- Throws:
NamingException- See Also:
-
doRebind
BindOperation- Throws:
NamingException
-
rebind
- Specified by:
rebindin interfaceContext- Throws:
NamingException- See Also:
-
unbind
- Specified by:
unbindin interfaceContext- Throws:
NamingException- See Also:
-
doUnbind
Unbind- Throws:
NamingException
-
unbind
- Specified by:
unbindin interfaceContext- Throws:
NamingException- See Also:
-
rename
- Specified by:
renamein interfaceContext- Throws:
NamingException- See Also:
-
doRename
Rename- Throws:
NamingException
-
rename
- Specified by:
renamein interfaceContext- Throws:
NamingException- See Also:
-
list
- Specified by:
listin interfaceContext- Throws:
NamingException- See Also:
-
doList
List- Throws:
NamingException
-
list
- Specified by:
listin interfaceContext- Throws:
NamingException- See Also:
-
listBindings
- Specified by:
listBindingsin interfaceContext- Throws:
NamingException- See Also:
-
doListBindings
local List Bindings- Throws:
NamingException
-
listBindings
- Specified by:
listBindingsin interfaceContext- Throws:
NamingException- See Also:
-
destroySubcontext
- Specified by:
destroySubcontextin interfaceContext- Throws:
NamingException- See Also:
-
doDestroySubcontext
- Throws:
NamingException
-
destroySubcontext
- Specified by:
destroySubcontextin interfaceContext- Throws:
NamingException- See Also:
-
createSubcontext
- Specified by:
createSubcontextin interfaceContext- Throws:
NamingException- See Also:
-
doCreateSubcontext
- Throws:
NamingException
-
createSubcontext
- Specified by:
createSubcontextin interfaceContext- Throws:
NamingException- See Also:
-
lookupLink
- Specified by:
lookupLinkin interfaceContext- Throws:
NamingException- See Also:
-
doLookupLink
- Throws:
NamingException
-
lookupLink
- Specified by:
lookupLinkin interfaceContext- Throws:
NamingException- See Also:
-
getNameParser
- Specified by:
getNameParserin interfaceContext- Throws:
NamingException- See Also:
-
doGetNameParser
- Throws:
NamingException
-
getNameParser
- Specified by:
getNameParserin interfaceContext- Throws:
NamingException- See Also:
-
composeName
- Specified by:
composeNamein interfaceContext- Throws:
NamingException- See Also:
-
composeName
- Specified by:
composeNamein interfaceContext- Throws:
NamingException- See Also:
-
addToEnvironment
- Specified by:
addToEnvironmentin interfaceContext- Throws:
NamingException- See Also:
-
removeFromEnvironment
- Specified by:
removeFromEnvironmentin interfaceContext- Throws:
NamingException- See Also:
-
getEnvironment
- Specified by:
getEnvironmentin interfaceContext- Throws:
NamingException- See Also:
-
close
- Specified by:
closein interfaceContext- Throws:
NamingException- See Also:
-