1 19 package org.objectweb.carol.cmi; 20 21 import java.rmi.NoSuchObjectException ; 22 import java.rmi.Remote ; 23 import java.rmi.RemoteException ; 24 25 28 public class UnicastRemoteObject implements Remote { 29 protected UnicastRemoteObject() throws RemoteException { 30 exportObject((Remote )this); 31 } 32 33 public Object clone() throws CloneNotSupportedException { 34 throw new CloneNotSupportedException ("Not implemented"); 35 } 36 37 57 58 public static void exportObject(Remote obj) 59 throws RemoteException { 60 68 LowerOrb.exportObject(obj); 70 } 71 72 public static void unexportObject(Remote obj) 73 throws NoSuchObjectException { 74 80 LowerOrb.unexportObject(obj); 82 } 83 } 84 | Popular Tags |