FileDocCategorySizeDatePackage
Resolver.javaAPI DocJava SE 5 API2562Fri Aug 26 14:57:42 BST 2005javax.naming.spi

Resolver

public 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.

A Name parameter passed to any method is owned by the caller. The service provider will not modify the object or keep a reference to it. A ResolveResult object returned by any method is owned by the caller. The caller may subsequently modify it; the service provider may not.

author
Rosanna Lee
author
Scott Seligman
version
1.9 04/05/05
since
1.3

Fields Summary
Constructors Summary
Methods Summary
public javax.naming.spi.ResolveResultresolveToClass(javax.naming.Name name, java.lang.Class contextType)
Partially resolves a name. Stops at the first context that is an instance of a given subtype of Context.

param
name the name to resolve
param
contextType the type of object to resolve. This should be a subtype of Context.
return
the object that was found, along with the unresolved suffix of name. Cannot be null.
throws
javax.naming.NotContextException if no context of the appropriate type is found
throws
NamingException if a naming exception was encountered
see
#resolveToClass(String, Class)

public javax.naming.spi.ResolveResultresolveToClass(java.lang.String name, java.lang.Class contextType)
Partially resolves a name. See {@link #resolveToClass(Name, Class)} for details.

param
name the name to resolve
param
contextType the type of object to resolve. This should be a subtype of Context.
return
the object that was found, along with the unresolved suffix of name. Cannot be null.
throws
javax.naming.NotContextException if no context of the appropriate type is found
throws
NamingException if a naming exception was encountered