public class NamingContext extends Object implements EventContext
NamingStore instance. This context is
read-only.OBJECT_SCOPE, ONELEVEL_SCOPE, SUBTREE_SCOPEAPPLET, 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 and Description |
|---|
NamingContext(Hashtable environment)
Create a new naming context with no prefix or naming store.
|
NamingContext(Name prefix,
Hashtable environment)
Create a context with a prefix name.
|
NamingContext(Name prefix,
NamingStore namingStore,
Hashtable environment)
Create a new naming context with a prefix name and a NamingStore instance to use as a backing.
|
NamingContext(NamingStore namingStore,
Hashtable environment)
Create a new naming context with the given namingStore and an empty name.
|
public NamingContext(Hashtable environment)
environment - The naming environmentpublic NamingContext(Name prefix, Hashtable environment) throws NamingException
prefix - The prefix for this contextenvironment - The naming environmentNamingException - if an error occurspublic NamingContext(Name prefix, NamingStore namingStore, Hashtable environment)
prefix - The prefix for this contextnamingStore - The NamingStoreenvironment - The naming environmentpublic NamingContext(NamingStore namingStore, Hashtable environment)
namingStore - the naming store to useenvironment - the environment to usepublic static void setActiveNamingStore(NamingStore namingStore)
namingStore - The naming storepublic static void initializeNamingManager()
NamingManager.public Object lookup(Name name) throws NamingException
lookup in interface ContextNamingExceptionpublic Object lookup(String name) throws NamingException
lookup in interface ContextNamingExceptionpublic Object lookup(String name, boolean dereference) throws NamingException
NamingExceptionpublic Object lookup(Name name, boolean dereference) throws NamingException
NamingExceptionpublic void bind(Name name, Object object) throws NamingException
bind in interface ContextNamingExceptionpublic void bind(String name, Object obj) throws NamingException
bind in interface ContextNamingExceptionpublic void rebind(Name name, Object object) throws NamingException
rebind in interface ContextNamingExceptionpublic void rebind(String name, Object object) throws NamingException
rebind in interface ContextNamingExceptionpublic void unbind(Name name) throws NamingException
unbind in interface ContextNamingExceptionpublic void unbind(String name) throws NamingException
unbind in interface ContextNamingExceptionpublic void rename(Name oldName, Name newName) throws NamingException
rename in interface ContextNamingExceptionpublic void rename(String oldName, String newName) throws NamingException
rename in interface ContextNamingExceptionpublic NamingEnumeration<NameClassPair> list(Name name) throws NamingException
list in interface ContextNamingExceptionpublic NamingEnumeration<NameClassPair> list(String name) throws NamingException
list in interface ContextNamingExceptionpublic NamingEnumeration<Binding> listBindings(Name name) throws NamingException
listBindings in interface ContextNamingExceptionpublic NamingEnumeration<Binding> listBindings(String name) throws NamingException
listBindings in interface ContextNamingExceptionpublic void destroySubcontext(Name name) throws NamingException
destroySubcontext in interface ContextNamingExceptionpublic void destroySubcontext(String name) throws NamingException
destroySubcontext in interface ContextNamingExceptionpublic Context createSubcontext(Name name) throws NamingException
createSubcontext in interface ContextNamingExceptionpublic Context createSubcontext(String name) throws NamingException
createSubcontext in interface ContextNamingExceptionpublic Object lookupLink(Name name) throws NamingException
lookupLink in interface ContextNamingExceptionpublic Object lookupLink(String name) throws NamingException
lookupLink in interface ContextNamingExceptionpublic NameParser getNameParser(Name name) throws NamingException
getNameParser in interface ContextNamingExceptionpublic NameParser getNameParser(String name) throws NamingException
getNameParser in interface ContextNamingExceptionpublic Name composeName(Name name, Name prefix) throws NamingException
composeName in interface ContextNamingExceptionpublic String composeName(String name, String prefix) throws NamingException
composeName in interface ContextNamingExceptionpublic Object addToEnvironment(String propName, Object propVal) throws NamingException
addToEnvironment in interface ContextNamingExceptionpublic Object removeFromEnvironment(String propName) throws NamingException
removeFromEnvironment in interface ContextNamingExceptionpublic Hashtable<?,?> getEnvironment() throws NamingException
getEnvironment in interface ContextNamingExceptionpublic void close()
throws NamingException
close in interface ContextNamingExceptionpublic String getNameInNamespace() throws NamingException
getNameInNamespace in interface ContextNamingExceptionpublic void addNamingListener(Name target, int scope, NamingListener listener) throws NamingException
addNamingListener in interface EventContextNamingExceptionpublic void addNamingListener(String target, int scope, NamingListener listener) throws NamingException
addNamingListener in interface EventContextNamingExceptionpublic void removeNamingListener(NamingListener listener) throws NamingException
removeNamingListener in interface EventContextNamingExceptionpublic boolean targetMustExist()
throws NamingException
targetMustExist in interface EventContextNamingExceptionCopyright © 2015 JBoss by Red Hat. All rights reserved.