public class IvmContext
extends java.lang.Object
implements javax.naming.Context, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
protected class |
IvmContext.MyBindingEnumeration |
protected class |
IvmContext.MyListEnumeration |
protected class |
IvmContext.MyNamingEnumeration |
Constructor and Description |
---|
IvmContext() |
IvmContext(java.util.Hashtable<java.lang.String,java.lang.Object> environment) |
IvmContext(NameNode node) |
IvmContext(NameNode node,
boolean isReadOnly) |
IvmContext(java.lang.String nodeName) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
addToEnvironment(java.lang.String propName,
java.lang.Object propVal) |
void |
bind(javax.naming.Name name,
java.lang.Object obj) |
void |
bind(java.lang.String name,
java.lang.Object obj) |
protected boolean |
checkReadOnly() |
void |
close() |
javax.naming.Name |
composeName(javax.naming.Name name,
javax.naming.Name prefix) |
java.lang.String |
composeName(java.lang.String name,
java.lang.String prefix) |
static IvmContext |
createRootContext() |
javax.naming.Context |
createSubcontext(javax.naming.Name name) |
javax.naming.Context |
createSubcontext(java.lang.String name) |
void |
destroySubcontext(javax.naming.Name name) |
void |
destroySubcontext(java.lang.String name) |
protected java.lang.Object |
federate(java.lang.String compositName) |
java.util.Hashtable |
getEnvironment() |
static javax.naming.spi.ObjectFactory[] |
getFederatedFactories() |
java.lang.String |
getNameInNamespace() |
javax.naming.NameParser |
getNameParser(javax.naming.Name name) |
javax.naming.NameParser |
getNameParser(java.lang.String name) |
javax.naming.NamingEnumeration<javax.naming.NameClassPair> |
list(javax.naming.Name name) |
javax.naming.NamingEnumeration<javax.naming.NameClassPair> |
list(java.lang.String name) |
javax.naming.NamingEnumeration<javax.naming.Binding> |
listBindings(javax.naming.Name name) |
javax.naming.NamingEnumeration<javax.naming.Binding> |
listBindings(java.lang.String name) |
java.lang.Object |
lookup(javax.naming.Name compositName) |
java.lang.Object |
lookup(java.lang.String compositName) |
java.lang.Object |
lookupLink(javax.naming.Name name) |
java.lang.Object |
lookupLink(java.lang.String name) |
void |
prune() |
void |
prune(java.lang.String name) |
void |
rebind(javax.naming.Name name,
java.lang.Object obj) |
void |
rebind(java.lang.String name,
java.lang.Object obj) |
java.lang.Object |
removeFromEnvironment(java.lang.String propName) |
void |
rename(javax.naming.Name oldname,
javax.naming.Name newname) |
void |
rename(java.lang.String oldname,
java.lang.String newname) |
void |
setReadOnly(boolean isReadOnly) |
java.lang.String |
toString() |
void |
tree(java.io.PrintStream out) |
void |
unbind(javax.naming.Name name) |
void |
unbind(java.lang.String name) |
protected java.lang.Object |
writeReplace() |
public NameNode mynode
public IvmContext()
public IvmContext(java.lang.String nodeName)
public IvmContext(NameNode node)
public IvmContext(NameNode node, boolean isReadOnly)
public IvmContext(java.util.Hashtable<java.lang.String,java.lang.Object> environment) throws javax.naming.NamingException
javax.naming.NamingException
public static IvmContext createRootContext()
public java.lang.Object lookup(java.lang.String compositName) throws javax.naming.NamingException
lookup
in interface javax.naming.Context
javax.naming.NamingException
protected java.lang.Object federate(java.lang.String compositName) throws javax.naming.NamingException
javax.naming.NamingException
public static javax.naming.spi.ObjectFactory[] getFederatedFactories() throws javax.naming.NamingException
javax.naming.NamingException
public java.lang.Object lookup(javax.naming.Name compositName) throws javax.naming.NamingException
lookup
in interface javax.naming.Context
javax.naming.NamingException
public void bind(java.lang.String name, java.lang.Object obj) throws javax.naming.NamingException
bind
in interface javax.naming.Context
javax.naming.NamingException
public void bind(javax.naming.Name name, java.lang.Object obj) throws javax.naming.NamingException
bind
in interface javax.naming.Context
javax.naming.NamingException
public void rebind(java.lang.String name, java.lang.Object obj) throws javax.naming.NamingException
rebind
in interface javax.naming.Context
javax.naming.NamingException
public void rebind(javax.naming.Name name, java.lang.Object obj) throws javax.naming.NamingException
rebind
in interface javax.naming.Context
javax.naming.NamingException
public void unbind(java.lang.String name) throws javax.naming.NamingException
unbind
in interface javax.naming.Context
javax.naming.NamingException
public void unbind(javax.naming.Name name) throws javax.naming.NamingException
unbind
in interface javax.naming.Context
javax.naming.NamingException
public void prune(java.lang.String name) throws javax.naming.NamingException
javax.naming.NamingException
public void prune() throws javax.naming.NamingException
javax.naming.NamingException
public void rename(java.lang.String oldname, java.lang.String newname) throws javax.naming.NamingException
rename
in interface javax.naming.Context
javax.naming.NamingException
public void rename(javax.naming.Name oldname, javax.naming.Name newname) throws javax.naming.NamingException
rename
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NamingEnumeration<javax.naming.NameClassPair> list(java.lang.String name) throws javax.naming.NamingException
list
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NamingEnumeration<javax.naming.NameClassPair> list(javax.naming.Name name) throws javax.naming.NamingException
list
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NamingEnumeration<javax.naming.Binding> listBindings(java.lang.String name) throws javax.naming.NamingException
listBindings
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NamingEnumeration<javax.naming.Binding> listBindings(javax.naming.Name name) throws javax.naming.NamingException
listBindings
in interface javax.naming.Context
javax.naming.NamingException
public void destroySubcontext(java.lang.String name) throws javax.naming.NamingException
destroySubcontext
in interface javax.naming.Context
javax.naming.NamingException
public void destroySubcontext(javax.naming.Name name) throws javax.naming.NamingException
destroySubcontext
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.Context createSubcontext(java.lang.String name) throws javax.naming.NamingException
createSubcontext
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.Context createSubcontext(javax.naming.Name name) throws javax.naming.NamingException
createSubcontext
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object lookupLink(java.lang.String name) throws javax.naming.NamingException
lookupLink
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object lookupLink(javax.naming.Name name) throws javax.naming.NamingException
lookupLink
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NameParser getNameParser(java.lang.String name) throws javax.naming.NamingException
getNameParser
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NameParser getNameParser(javax.naming.Name name) throws javax.naming.NamingException
getNameParser
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.String composeName(java.lang.String name, java.lang.String prefix) throws javax.naming.NamingException
composeName
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.Name composeName(javax.naming.Name name, javax.naming.Name prefix) throws javax.naming.NamingException
composeName
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object addToEnvironment(java.lang.String propName, java.lang.Object propVal) throws javax.naming.NamingException
addToEnvironment
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object removeFromEnvironment(java.lang.String propName) throws javax.naming.NamingException
removeFromEnvironment
in interface javax.naming.Context
javax.naming.NamingException
public java.util.Hashtable getEnvironment() throws javax.naming.NamingException
getEnvironment
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.String getNameInNamespace() throws javax.naming.NamingException
getNameInNamespace
in interface javax.naming.Context
javax.naming.NamingException
public void close() throws javax.naming.NamingException
close
in interface javax.naming.Context
javax.naming.NamingException
protected boolean checkReadOnly() throws javax.naming.OperationNotSupportedException
javax.naming.OperationNotSupportedException
public void setReadOnly(boolean isReadOnly)
public void tree(java.io.PrintStream out)
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.Object writeReplace() throws java.io.ObjectStreamException
java.io.ObjectStreamException