15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 version 2 for more details (a copy is included in the LICENSE file that
18 accompanied this code).
19
20 You should have received a copy of the GNU General Public License version
21 2 along with this work; if not, write to the Free Software Foundation,
22 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
23
24 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
25 or visit www.oracle.com if you need additional information or have any
26 questions.
27 -->
28 </head>
29 <body bgcolor="white">
30
31 Provides the classes and interfaces for accessing naming services.
32
33 <p>
34 This package defines the naming operations of the Java Naming and
35 Directory Interface™ (JNDI).
36 JNDI provides naming and directory functionality to applications
37 written in the Java programming language. It is designed to be
38 independent of any specific naming or directory service
39 implementation. Thus a variety of services--new, emerging, and
40 already deployed ones--can be accessed in a common way.
41
42
43 <h2>Context</h2>
44 <p>
45 This package defines the notion of a <em>context</em>, represented
46 by the <code>Context</code> interface.
47 A context consists of a set of name-to-object <em>bindings</em>.
48 <code>Context</code> is the core interface for looking up, binding, unbinding,
49 and renaming objects, and for creating and destroying subcontexts.
50 <p>
51 <code>lookup()</code> is the most commonly used operation.
52 You supply <code>lookup()</code>
53 the name of the object you want
54 to look up, and it returns the object bound to that name.
55 For example, the following code fragment looks up
|
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 version 2 for more details (a copy is included in the LICENSE file that
18 accompanied this code).
19
20 You should have received a copy of the GNU General Public License version
21 2 along with this work; if not, write to the Free Software Foundation,
22 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
23
24 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
25 or visit www.oracle.com if you need additional information or have any
26 questions.
27 -->
28 </head>
29 <body bgcolor="white">
30
31 Provides the classes and interfaces for accessing naming services.
32
33 <p>
34 This package defines the naming operations of the Java Naming and
35 Directory Interface (JNDI).
36 JNDI provides naming and directory functionality to applications
37 written in the Java programming language. It is designed to be
38 independent of any specific naming or directory service
39 implementation. Thus a variety of services--new, emerging, and
40 already deployed ones--can be accessed in a common way.
41
42
43 <h2>Context</h2>
44 <p>
45 This package defines the notion of a <em>context</em>, represented
46 by the <code>Context</code> interface.
47 A context consists of a set of name-to-object <em>bindings</em>.
48 <code>Context</code> is the core interface for looking up, binding, unbinding,
49 and renaming objects, and for creating and destroying subcontexts.
50 <p>
51 <code>lookup()</code> is the most commonly used operation.
52 You supply <code>lookup()</code>
53 the name of the object you want
54 to look up, and it returns the object bound to that name.
55 For example, the following code fragment looks up
|