public interface NameResolver
A NameResolver represents an object that implements the name resolution strategies specific to some naming system. For example, a naming system may arrange NameContext objects into a hierarchy, and a name such as "../services/scheduler" may represent a traversal path through the hierarchy leading to a bound object. The naming system may also specify policies for creating new objects in the namespace if an object is not found.
The policies for traversing namespaces and creating new objects on demand should not be encapsulated by the NameContext implementations, but should instead be encapsulated by the NameResolver implementations. This allows various implementations of NameContext to be used in a namespace that implements a specific policy of name resolution.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
resolveName(java.lang.String pName)
Follows the naming system's conventions for resolving the
specified name, and returns the Object that is the result of the
resolution.
|
static final java.lang.String CLASS_VERSION