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
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
-
Method Summary
Modifier and TypeMethodDescriptionaddToEnvironment(String propName, Object propVal)
void
void
void
close()
composeName(String name, String prefix)
composeName(Name name, Name prefix)
createSubcontext(String name)
createSubcontext(Name name)
void
destroySubcontext(String name)
void
destroySubcontext(Name name)
protected void
BindOperationprotected Context
lookup of continuation context.doCreateSubcontext(String name)
void
doDestroySubcontext(String name)
doGetNameParser(String name)
protected NamingEnumeration<NameClassPair>
Listprotected NamingEnumeration<Binding>
doListBindings(String localName)
local List Bindingsprotected Object
overwrite to provide lookup (local name)doLookupLink(String name)
protected void
BindOperationprotected void
Renameprotected void
Unbindprotected Context
access to continuation contextHashtable<?,?>
getNameParser(String name)
getNameParser(Name name)
listBindings(String name)
listBindings(Name name)
lookupLink(String name)
lookupLink(Name name)
protected Object
prepareState(String name, Object obj)
prepares an object for binding by resolving state transitions and Referencable etc.void
void
removeFromEnvironment(String propName)
void
void
void
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
lookup
in interfaceContext
- Throws:
NamingException
- See Also:
Context.lookup(Name)
-
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:
lookup
in interfaceContext
- Throws:
NamingException
- See Also:
Context.lookup(String)
-
bind
- Specified by:
bind
in interfaceContext
- Throws:
NamingException
- See Also:
Context.bind(Name, Object)
-
doBind
BindOperation- Throws:
NamingException
-
bind
- Specified by:
bind
in interfaceContext
- Throws:
NamingException
- See Also:
Context.bind(String, Object)
-
rebind
- Specified by:
rebind
in interfaceContext
- Throws:
NamingException
- See Also:
Context.rebind(Name, Object)
-
doRebind
BindOperation- Throws:
NamingException
-
rebind
- Specified by:
rebind
in interfaceContext
- Throws:
NamingException
- See Also:
Context.rebind(String, Object)
-
unbind
- Specified by:
unbind
in interfaceContext
- Throws:
NamingException
- See Also:
Context.unbind(Name)
-
doUnbind
Unbind- Throws:
NamingException
-
unbind
- Specified by:
unbind
in interfaceContext
- Throws:
NamingException
- See Also:
Context.unbind(String)
-
rename
- Specified by:
rename
in interfaceContext
- Throws:
NamingException
- See Also:
Context.rename(Name, Name)
-
doRename
Rename- Throws:
NamingException
-
rename
- Specified by:
rename
in interfaceContext
- Throws:
NamingException
- See Also:
Context.rename(String, String)
-
list
- Specified by:
list
in interfaceContext
- Throws:
NamingException
- See Also:
Context.list(Name)
-
doList
List- Throws:
NamingException
-
list
- Specified by:
list
in interfaceContext
- Throws:
NamingException
- See Also:
Context.list(String)
-
listBindings
- Specified by:
listBindings
in interfaceContext
- Throws:
NamingException
- See Also:
Context.listBindings(Name)
-
doListBindings
local List Bindings- Throws:
NamingException
-
listBindings
- Specified by:
listBindings
in interfaceContext
- Throws:
NamingException
- See Also:
Context.listBindings(String)
-
destroySubcontext
- Specified by:
destroySubcontext
in interfaceContext
- Throws:
NamingException
- See Also:
Context.destroySubcontext(Name)
-
doDestroySubcontext
- Throws:
NamingException
-
destroySubcontext
- Specified by:
destroySubcontext
in interfaceContext
- Throws:
NamingException
- See Also:
Context.destroySubcontext(String)
-
createSubcontext
- Specified by:
createSubcontext
in interfaceContext
- Throws:
NamingException
- See Also:
Context.createSubcontext(Name)
-
doCreateSubcontext
- Throws:
NamingException
-
createSubcontext
- Specified by:
createSubcontext
in interfaceContext
- Throws:
NamingException
- See Also:
Context.createSubcontext(String)
-
lookupLink
- Specified by:
lookupLink
in interfaceContext
- Throws:
NamingException
- See Also:
Context.lookupLink(Name)
-
doLookupLink
- Throws:
NamingException
-
lookupLink
- Specified by:
lookupLink
in interfaceContext
- Throws:
NamingException
- See Also:
Context.lookupLink(String)
-
getNameParser
- Specified by:
getNameParser
in interfaceContext
- Throws:
NamingException
- See Also:
Context.getNameParser(Name)
-
doGetNameParser
- Throws:
NamingException
-
getNameParser
- Specified by:
getNameParser
in interfaceContext
- Throws:
NamingException
- See Also:
Context.getNameParser(String)
-
composeName
- Specified by:
composeName
in interfaceContext
- Throws:
NamingException
- See Also:
Context.composeName(Name, Name)
-
composeName
- Specified by:
composeName
in interfaceContext
- Throws:
NamingException
- See Also:
Context.composeName(String, String)
-
addToEnvironment
- Specified by:
addToEnvironment
in interfaceContext
- Throws:
NamingException
- See Also:
Context.addToEnvironment(String, Object)
-
removeFromEnvironment
- Specified by:
removeFromEnvironment
in interfaceContext
- Throws:
NamingException
- See Also:
Context.removeFromEnvironment(String)
-
getEnvironment
- Specified by:
getEnvironment
in interfaceContext
- Throws:
NamingException
- See Also:
Context.getEnvironment()
-
close
- Specified by:
close
in interfaceContext
- Throws:
NamingException
- See Also:
Context.close()
-