-
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.
- Since:
- 1.3
-
-
Method Summary
Methods Modifier and Type Method and Description ResolveResult
resolveToClass(Name name, Class<? extends Context> contextType)
Partially resolves a name.ResolveResult
resolveToClass(String name, Class<? extends Context> contextType)
Partially resolves a name.
-
-
-
Method Detail
-
resolveToClass
ResolveResult resolveToClass(Name name, Class<? extends Context> contextType) throws NamingException
Partially resolves a name. Stops at the first context that is an instance of a given subtype ofContext
.- Parameters:
name
- the name to resolvecontextType
- the type of object to resolve. This should be a subtype ofContext
.- Returns:
- the object that was found, along with the unresolved
suffix of
name
. Cannot be null. - Throws:
NotContextException
- if no context of the appropriate type is foundNamingException
- if a naming exception was encountered- See Also:
resolveToClass(String, Class)
-
resolveToClass
ResolveResult resolveToClass(String name, Class<? extends Context> contextType) throws NamingException
Partially resolves a name. SeeresolveToClass(Name, Class)
for details.- Parameters:
name
- the name to resolvecontextType
- the type of object to resolve. This should be a subtype ofContext
.- Returns:
- the object that was found, along with the unresolved
suffix of
name
. Cannot be null. - Throws:
NotContextException
- if no context of the appropriate type is foundNamingException
- if a naming exception was encountered
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/naming/spi/Resolver.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.