public class DefaultSpringJndiContext extends Object implements Context, Serializable
Modifier and Type | Field and Description |
---|---|
protected Map |
bindings |
protected Hashtable |
environment |
protected static NameParser |
nameParser |
static String |
SEPARATOR |
protected Map |
treeBindings |
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
Modifier | Constructor and Description |
---|---|
|
DefaultSpringJndiContext() |
protected |
DefaultSpringJndiContext(DefaultSpringJndiContext clone,
Hashtable env) |
protected |
DefaultSpringJndiContext(DefaultSpringJndiContext clone,
Hashtable env,
String nameInNamespace) |
|
DefaultSpringJndiContext(Hashtable env) |
|
DefaultSpringJndiContext(Hashtable environment,
Map bindings) |
|
DefaultSpringJndiContext(Hashtable environment,
Map bindings,
String nameInNamespace) |
protected static final NameParser nameParser
protected final Hashtable environment
protected final Map bindings
protected final Map treeBindings
public static final String SEPARATOR
public DefaultSpringJndiContext()
public DefaultSpringJndiContext(Hashtable env)
public DefaultSpringJndiContext(Hashtable environment, Map bindings, String nameInNamespace)
protected DefaultSpringJndiContext(DefaultSpringJndiContext clone, Hashtable env)
protected DefaultSpringJndiContext(DefaultSpringJndiContext clone, Hashtable env, String nameInNamespace)
public Object addToEnvironment(String propName, Object propVal) throws NamingException
addToEnvironment
in interface Context
NamingException
public Hashtable getEnvironment() throws NamingException
getEnvironment
in interface Context
NamingException
public Object removeFromEnvironment(String propName) throws NamingException
removeFromEnvironment
in interface Context
NamingException
public Object lookup(String name) throws NamingException
lookup
in interface Context
NamingException
public Object lookup(Name name) throws NamingException
lookup
in interface Context
NamingException
public Object lookupLink(String name) throws NamingException
lookupLink
in interface Context
NamingException
public Name composeName(Name name, Name prefix) throws NamingException
composeName
in interface Context
NamingException
public String composeName(String name, String prefix) throws NamingException
composeName
in interface Context
NamingException
public NamingEnumeration list(String name) throws NamingException
list
in interface Context
NamingException
public NamingEnumeration listBindings(String name) throws NamingException
listBindings
in interface Context
NamingException
public Object lookupLink(Name name) throws NamingException
lookupLink
in interface Context
NamingException
public NamingEnumeration list(Name name) throws NamingException
list
in interface Context
NamingException
public NamingEnumeration listBindings(Name name) throws NamingException
listBindings
in interface Context
NamingException
public void bind(Name name, Object value) throws NamingException
bind
in interface Context
NamingException
public void bind(String name, Object value) throws NamingException
bind
in interface Context
NamingException
public void close() throws NamingException
close
in interface Context
NamingException
public Context createSubcontext(Name name) throws NamingException
createSubcontext
in interface Context
NamingException
public Context createSubcontext(String name) throws NamingException
createSubcontext
in interface Context
NamingException
public void destroySubcontext(Name name) throws NamingException
destroySubcontext
in interface Context
NamingException
public void destroySubcontext(String name) throws NamingException
destroySubcontext
in interface Context
NamingException
public String getNameInNamespace() throws NamingException
getNameInNamespace
in interface Context
NamingException
public NameParser getNameParser(Name name) throws NamingException
getNameParser
in interface Context
NamingException
public NameParser getNameParser(String name) throws NamingException
getNameParser
in interface Context
NamingException
public void rebind(Name name, Object value) throws NamingException
rebind
in interface Context
NamingException
public void rebind(String name, Object value) throws NamingException
rebind
in interface Context
NamingException
public void rename(Name oldName, Name newName) throws NamingException
rename
in interface Context
NamingException
public void rename(String oldName, String newName) throws NamingException
rename
in interface Context
NamingException
public void unbind(Name name) throws NamingException
unbind
in interface Context
NamingException
public void unbind(String name) throws NamingException
unbind
in interface Context
NamingException
public Map getEntries()
public void setEntries(Map entries) throws NamingException
NamingException
public boolean isFreeze()
public void setFreeze(boolean freeze)
protected Map internalBind(String name, Object value) throws NamingException
name
- value
- NamingException
protected Map internalBind(String name, Object value, boolean allowRebind) throws NamingException
NamingException
protected void checkFrozen() throws OperationNotSupportedException
OperationNotSupportedException
protected DefaultSpringJndiContext newContext()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.