|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
ResolveResult |
resolveToClass(Name name,
Class contextType)
Partially resolves a name. |
ResolveResult |
resolveToClass(String name,
Class contextType)
Partially resolves a name. |
Method Detail |
public ResolveResult resolveToClass(Name name, Class contextType) throws NamingException
Context
.name
- the name to resolvecontextType
- the type of object to resolve. This should
be a subtype of Context
.name
. Cannot be null.NotContextException
- if no context of the appropriate type is foundNamingException
- if a naming exception was encounteredresolveToClass(String, Class)
public ResolveResult resolveToClass(String name, Class contextType) throws NamingException
resolveToClass(Name, Class)
for details.name
- the name to resolvecontextType
- the type of object to resolve. This should
be a subtype of Context
.name
. Cannot be null.NotContextException
- if no context of the appropriate type is foundNamingException
- if a naming exception was encountered
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.