KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > alt > java > rmi > NamingImpl


1 package alt.java.rmi;
2
3 import java.rmi.Remote JavaDoc;
4 import java.rmi.NotBoundException JavaDoc;
5 import java.rmi.RemoteException JavaDoc;
6 import java.rmi.AlreadyBoundException JavaDoc;
7
8 public class NamingImpl implements Naming {
9
10     public Remote JavaDoc lookup(String JavaDoc name) throws NotBoundException JavaDoc,
11             java.net.MalformedURLException JavaDoc,
12             RemoteException JavaDoc {
13         return java.rmi.Naming.lookup(name);
14     }
15
16     public void bind(String JavaDoc name, Remote JavaDoc obj)
17             throws AlreadyBoundException JavaDoc,
18             java.net.MalformedURLException JavaDoc,
19             RemoteException JavaDoc {
20         java.rmi.Naming.bind(name, obj);
21     }
22
23     public void unbind(String JavaDoc name)
24             throws RemoteException JavaDoc,
25             NotBoundException JavaDoc,
26             java.net.MalformedURLException JavaDoc {
27         java.rmi.Naming.unbind(name);
28     }
29
30     public void rebind(String JavaDoc name, Remote JavaDoc obj)
31             throws RemoteException JavaDoc, java.net.MalformedURLException JavaDoc {
32         java.rmi.Naming.rebind(name, obj);
33     }
34
35     public String JavaDoc[] list(String JavaDoc name)
36             throws RemoteException JavaDoc, java.net.MalformedURLException JavaDoc {
37         return java.rmi.Naming.list(name);
38     }
39 }
40
Popular Tags