Method Summary |
|
public Object | addToEnvironment(String propName, Object propVal) Adds a new environment property to the environment of this context. |
public void | bind(Name name, Object obj) Binds a name to an object. |
public void | bind(String name, Object obj) Binds a name to an object. |
public void | close() Closes this context. |
public Name | composeName(Name name, Name prefix) Composes the name of this context with a name relative to this context. |
public String | composeName(String name, String prefix) Composes the name of this context with a name relative to this context. |
public Context | createSubcontext(Name name) Creates and binds a new context to this context. |
public Context | createSubcontext(String name) Creates and binds a new context. |
public void | destroySubcontext(Name name) Destroys the named context and removes it from the namespace. |
public void | destroySubcontext(String name) Destroys the named context and removes it from the namespace. |
public Hashtable | getEnvironment() Retrieves the environment in effect for this context. |
public String | getNameInNamespace() Retrieves the full name of this context within its own namespace. |
public NameParser | getNameParser(Name name) Retrieves the parser associated with the named context. |
public NameParser | getNameParser(String name) Retrieves the parser associated with the named context. |
public void | initContext() This method is called to init the context for a class loader. |
public NamingEnumeration | list(Name name) Enumerates the names bound in the named context, along with the class
names of objects bound to them. |
public NamingEnumeration | list(String name) Enumerates the names bound in the named context, along with the class
names of objects bound to them. |
public NamingEnumeration | listBindings(Name name) Enumerates the names bound in the named context, along with the objects
bound to them. |
public NamingEnumeration | listBindings(String name) Enumerates the names bound in the named context, along with the objects
bound to them. |
public Object | lookup(Name name) Retrieves the named object. |
public Object | lookup(String name) Retrieves the named object. |
public Object | lookupLink(Name name) Retrieves the named object, following links except for the terminal
atomic component of the name. |
public Object | lookupLink(String name) Retrieves the named object, following links except for the terminal
atomic component of the name. |
public void | rebind(Name name, Object obj) Binds a name to an object, overwriting any existing binding. |
public void | rebind(String name, Object obj) Binds a name to an object, overwriting any existing binding. |
public void | releaseContext() This method is called to release the context for class loader. |
public Object | removeFromEnvironment(String propName) Removes an environment property from the environment of this context. |
public void | rename(Name oldName, Name newName) Binds a new name to the object bound to an old name, and unbinds the old
name. |
public void | rename(String oldName, String newName) Binds a new name to the object bound to an old name, and unbinds the old
name. |
public void | terminate() |
public void | unbind(Name name) Unbinds the named object. |
public void | unbind(String name) Unbinds the named objec. |