01: /* JFox, the OpenSource J2EE Application Server
02: *
03: * Copyright (C) 2002 huihoo.com
04: * Distributable under GNU LGPL license
05: * See the GNU Lesser General Public License for more details.
06: */
07:
08: package org.huihoo.jfox.jndi;
09:
10: import javax.naming.Name;
11: import javax.naming.NamingException;
12: import javax.naming.Context;
13: import java.rmi.RemoteException;
14: import java.rmi.Remote;
15: import java.util.List;
16:
17: /**
18: *
19: * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
20: */
21:
22: public interface NamingService extends Remote {
23: public void bind(Context ctx, Name name, Object obj,
24: String className) throws NamingException, RemoteException;
25:
26: public void rebind(Context ctx, Name name, Object obj,
27: String className) throws NamingException, RemoteException;
28:
29: public void unbind(Context ctx, Name name) throws NamingException,
30: RemoteException;
31:
32: public Object lookup(Name name) throws NamingException,
33: RemoteException;
34:
35: public Object lookupLink(Name name) throws NamingException,
36: RemoteException;
37:
38: public List list(Context ctx, Name name) throws NamingException,
39: RemoteException;
40:
41: public List listBindings(Context ctx, Name name)
42: throws NamingException, RemoteException;
43:
44: public Context createSubcontext(Context ctx, Name name)
45: throws NamingException, RemoteException;
46:
47: // destory empty sub context
48: public void destroySubcontext(Context ctx, Name name)
49: throws NamingException, RemoteException;
50:
51: // close context and destory all it's sub name and context
52: public void closeSubcontext(Context ctx, Name name)
53: throws NamingException, RemoteException;
54:
55: public boolean isBound(Name name) throws RemoteException;
56: }
|