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