KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > spice > jndikit > NamingProvider


1 /*
2  * Copyright (C) The Spice Group. All rights reserved.
3  *
4  * This software is published under the terms of the Spice
5  * Software License version 1.1, a copy of which has been included
6  * with this distribution in the LICENSE.txt file.
7  */

8 package org.codehaus.spice.jndikit;
9
10 import javax.naming.Binding JavaDoc;
11 import javax.naming.Context JavaDoc;
12 import javax.naming.Name JavaDoc;
13 import javax.naming.NameClassPair JavaDoc;
14 import javax.naming.NameParser JavaDoc;
15 import javax.naming.NamingException JavaDoc;
16
17 /**
18  * The underlying communication interface for remote contexts.
19  *
20  * @author Peter Donald
21  * @version $Revision: 1.1 $
22  */

23 public interface NamingProvider
24 {
25     NameParser JavaDoc getNameParser()
26         throws NamingException JavaDoc, Exception JavaDoc;
27
28     void bind( Name JavaDoc name, String JavaDoc className, Object JavaDoc object )
29         throws NamingException JavaDoc, Exception JavaDoc;
30
31     void rebind( Name JavaDoc name, String JavaDoc className, Object JavaDoc object )
32         throws NamingException JavaDoc, Exception JavaDoc;
33
34     Context JavaDoc createSubcontext( Name JavaDoc name )
35         throws NamingException JavaDoc, Exception JavaDoc;
36
37     void destroySubcontext( Name JavaDoc name )
38         throws NamingException JavaDoc, Exception JavaDoc;
39
40     NameClassPair JavaDoc[] list( Name JavaDoc name )
41         throws NamingException JavaDoc, Exception JavaDoc;
42
43     Binding JavaDoc[] listBindings( Name JavaDoc name )
44         throws NamingException JavaDoc, Exception JavaDoc;
45
46     Object JavaDoc lookup( Name JavaDoc name )
47         throws NamingException JavaDoc, Exception JavaDoc;
48
49     void unbind( Name JavaDoc name )
50         throws NamingException JavaDoc, Exception JavaDoc;
51 }
52
Popular Tags