1 28 package org.objectweb.carol.rmi.multi; 29 30 import java.rmi.NoSuchObjectException ; 31 import java.rmi.Remote ; 32 import java.rmi.RemoteException ; 33 34 import javax.rmi.CORBA.PortableRemoteObjectDelegate ; 35 36 import org.objectweb.carol.cmi.LowerOrb; 37 38 43 public class CmiPRODelegate implements PortableRemoteObjectDelegate { 44 45 48 private PortableRemoteObjectDelegate rmi; 49 50 53 public CmiPRODelegate() { 54 rmi = LowerOrb.getPRODelegate(); 55 } 56 57 62 public void exportObject(Remote obj) throws RemoteException { 63 rmi.exportObject(obj); 64 } 65 66 71 public void unexportObject(Remote obj) throws NoSuchObjectException { 72 rmi.unexportObject(obj); 73 } 74 75 81 public void connect(Remote target, Remote source) throws RemoteException { 82 rmi.connect(target, source); 83 } 84 85 93 public Object narrow(Object obj, Class newClass) throws ClassCastException { 94 return rmi.narrow(obj, newClass); 95 } 96 97 103 public Remote toStub(Remote obj) throws NoSuchObjectException { 104 return rmi.toStub(obj); 105 } 106 } | Popular Tags |