KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > naming > SerialContextProvider


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23 package com.sun.enterprise.naming;
24
25 import java.util.*;
26 import java.io.*;
27 import javax.naming.*;
28 import javax.rmi.PortableRemoteObject JavaDoc;
29 import java.rmi.*;
30
31 public interface SerialContextProvider extends Remote {
32
33     /**
34      * Lookup the specified name.
35      * @return the object or context bound to the name.
36      * @exception NamingException if there is a naming exception.
37      * @exception if there is an RMI exception.
38      */

39     public Object JavaDoc lookup(String JavaDoc name)
40         throws NamingException, RemoteException;
41
42     /**
43      * Bind the object to the specified name.
44      * @exception NamingException if there is a naming exception.
45      * @exception if there is an RMI exception.
46      */

47     public void bind(String JavaDoc name, Object JavaDoc obj)
48         throws NamingException, RemoteException;
49
50     /**
51      * Rebind the object to the specified name.
52      * @exception NamingException if there is a naming exception.
53      * @exception if there is an RMI exception.
54      */

55     public void rebind(String JavaDoc name, Object JavaDoc obj)
56         throws NamingException, RemoteException;
57
58     /**
59      * Unbind the specified object.
60      * @exception NamingException if there is a naming exception.
61      * @exception if there is an RMI exception.
62      */

63     public void unbind(String JavaDoc name)
64         throws NamingException, RemoteException;
65
66     /**
67      * Rename the bound object.
68      * @exception NamingException if there is a naming exception.
69      * @exception if there is an RMI exception.
70      */

71     public void rename(String JavaDoc oldname, String JavaDoc newname)
72         throws NamingException, RemoteException;
73
74     public Hashtable list() throws RemoteException;
75
76     /**
77      * List the contents of the specified context.
78      * @exception NamingException if there is a naming exception.
79      * @exception if there is an RMI exception.
80      */

81     public Hashtable list(String JavaDoc name) throws NamingException, RemoteException;
82     
83     /**
84      * Create a subcontext with the specified name.
85      * @return the created subcontext.
86      * @exception NamingException if there is a naming exception.
87      * @exception if there is an RMI exception.
88      */

89     public Context createSubcontext (String JavaDoc name)
90     throws NamingException, RemoteException;
91
92     /**
93      * Destroy the subcontext with the specified name.
94      * @exception NamingException if there is a naming exception.
95      * @exception if there is an RMI exception.
96      */

97     public void destroySubcontext (String JavaDoc name)
98     throws NamingException, RemoteException;
99 }
100
101
102
Popular Tags