All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface javax.naming.spi.Resolver

public interface Resolver
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 Index

 o resolveToClass(Name, Class)
Partially resolves a name, stopping at the first context that is an instance of a given subtype of Context.
 o resolveToClass(String, Class)
Partially resolves a name, stopping at the first context that is an instance of a given subtype of Context.

Methods

 o resolveToClass
 public abstract ResolveResult resolveToClass(String name,
                                              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.
Throws: NamingException
If a naming exception was encountered during during resolution.
See Also:
resolveToClass
 o resolveToClass
 public abstract ResolveResult resolveToClass(Name name,
                                              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.
Throws: NamingException
If a naming exception was encountered during during resolution.
See Also:
ResolveResult

All Packages  Class Hierarchy  This Package  Previous  Next  Index