API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.naming.spi. Resolver View Javadoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79

/*
 * @(#)Resolver.java	1.10 05/11/17
 *
 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */


package javax.naming.spi;

import javax.naming.Context;
import javax.naming.Name;
import javax.naming.NamingException;

/**
  * This interface represents an "intermediate context" for name resolution.
  *<p>
  * 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.
  *<p>
  * A <tt>Name</tt> 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 <tt>ResolveResult</tt> 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.10 05/11/17
  * @since 1.3
  */

public interface Resolver {

    /**
     * Partially resolves a name.  Stops at the first
     * context that is an instance of a given subtype of
     * <code>Context</code>.
     *
     * @param name
     *		the name to resolve
     * @param contextType
     *		the type of object to resolve.  This should
     *		be a subtype of <code>Context</code>.
     * @return	the object that was found, along with the unresolved
     *		suffix of <code>name</code>.  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 ResolveResult resolveToClass(Name name,
					Class<? extends Context> contextType)
	    throws NamingException;

    /**
     * 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 <code>Context</code>.
     * @return	the object that was found, along with the unresolved
     *		suffix of <code>name</code>.  Cannot be null.
     *
     * @throws	javax.naming.NotContextException
     *		if no context of the appropriate type is found
     * @throws	NamingException if a naming exception was encountered
     */
    public ResolveResult resolveToClass(String name,
					Class<? extends Context> contextType)
	    throws NamingException;
};

Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar