tyrex.naming
public final class EnvContext extends Object implements Context, Serializable
This context is not constructed directly but generally through the application performing a URL lookup on the java: namespace. Such requests are materizlied through tyrex.naming.java.javaURLContextFactory which directs them to an instance of EnvContext.
To comply with J2EE requirements, the environment context is a read-only namespace, heirarchial and supporting links, can bind non-persistent objects (like factories, services), and can be serialized as part of a bean's activation/passivation.
Version: $Revision: 1.9 $ $Date: 2001/03/13 20:59:02 $
| Constructor Summary | |
|---|---|
| EnvContext(Hashtable env)
Construct a new context for the root path. | |
| EnvContext(MemoryBinding bindings, Hashtable env)
Construct a new context with the specified bindings and
environment attributes. | |
| Method Summary | |
|---|---|
| Object | addToEnvironment(String name, Object value) |
| void | bind(String name, Object value) |
| void | bind(Name name, Object value) |
| void | close() |
| Name | composeName(Name name, Name prefix) |
| String | composeName(String name, String prefix) |
| Context | createSubcontext(String name) |
| Context | createSubcontext(Name name) |
| void | destroySubcontext(String name) |
| void | destroySubcontext(Name name) |
| Hashtable | getEnvironment() |
| String | getNameInNamespace() |
| NameParser | getNameParser(String name) |
| NameParser | getNameParser(Name name) |
| NamingEnumeration | list(String name) |
| NamingEnumeration | list(Name name) |
| NamingEnumeration | listBindings(String name) |
| NamingEnumeration | listBindings(Name name) |
| Object | lookup(String name) |
| Object | lookup(Name name) |
| Object | lookupLink(String name) |
| Object | lookupLink(Name name) |
| void | rebind(String name, Object value) |
| void | rebind(Name name, Object value) |
| Object | removeFromEnvironment(String name) |
| void | rename(String oldName, String newName) |
| void | rename(Name oldName, Name newName) |
| String | toString() |
| void | unbind(String name) |
| void | unbind(Name name) |