JNDI 1.1.1

javax.naming.spi
Interface Resolver


public abstract interface Resolver

This interface represents an "intermediate context" for name resolution.

The Resolver interface contains methods that are implemented by contexts that do not support subtypes of Context, but which can act as intermediate contexts for resolution purposes.


Method Summary
 ResolveResult resolveToClass(Name name, java.lang.Class contextType)
          Partially resolves a name, stopping at the first context that is an instance of a given subtype of Context.
 ResolveResult resolveToClass(java.lang.String name, java.lang.Class contextType)
          Partially resolves a name, stopping at the first context that is an instance of a given subtype of Context.
 

Method Detail

resolveToClass

public ResolveResult resolveToClass(java.lang.String name,
                                    java.lang.Class contextType)
                             throws NamingException
Partially resolves a name, stopping at the first context that is an instance of a given subtype of Context.
Parameters:
name - The non-null name to resolve.
contextType - The non-null type of object to resolve. This should be a subtype of Context.
Returns:
The non-null object that was found, along with the unresolved suffix of name. Cannot be null.
Throws:
NotContextException - if no context of the appropriate type is found.
NamingException - If a naming exception was encountered during during resolution.
See Also:
resolveToClass(javax.naming.Name, java.lang.Class)

resolveToClass

public ResolveResult resolveToClass(Name name,
                                    java.lang.Class contextType)
                             throws NamingException
Partially resolves a name, stopping at the first context that is an instance of a given subtype of Context.
Parameters:
name - The non-null name to resolve.
contextType - The non-null type of object to resolve. This should be a subtype of Context.
Returns:
The non-null object that was found, along with the unresolved suffix of name. Cannot be null.
Throws:
NotContextException - if no context of the appropriate type is found.
NamingException - If a naming exception was encountered during during resolution.
See Also:
ResolveResult

JNDI 1.1.1

For more information on JNDI, please see http://java.sun.com/products/jndi