34
35 import org.omg.CORBA.ORB;
36 import org.omg.CORBA.INITIALIZE;
37 import org.omg.CORBA_2_3.portable.ObjectImpl;
38
39 import java.io.IOException;
40 import java.rmi.RemoteException;
41 import java.io.File;
42 import java.io.FileInputStream;
43 import java.net.MalformedURLException ;
44 import java.security.AccessController;
45 import java.security.PrivilegedAction;
46 import java.util.Properties;
47 import java.rmi.server.RMIClassLoader;
48
49 import com.sun.corba.se.impl.orbutil.GetPropertyAction;
50
51
52 /**
53 * Base class from which all RMI-IIOP stubs must inherit.
54 */
55 public abstract class Stub extends ObjectImpl
56 implements java.io.Serializable {
57
58 private static final long serialVersionUID = 1087775603798577179L;
59
60 // This can only be set at object construction time (no sync necessary).
61 private transient StubDelegate stubDelegate = null;
62 private static Class stubDelegateClass = null;
63 private static final String StubClassKey = "javax.rmi.CORBA.StubClass";
64
65 static {
66 Object stubDelegateInstance = createDelegate(StubClassKey);
67 if (stubDelegateInstance != null)
68 stubDelegateClass = stubDelegateInstance.getClass();
69 }
70
71
72 /**
73 * Returns a hash code value for the object which is the same for all stubs
|
34
35 import org.omg.CORBA.ORB;
36 import org.omg.CORBA.INITIALIZE;
37 import org.omg.CORBA_2_3.portable.ObjectImpl;
38
39 import java.io.IOException;
40 import java.rmi.RemoteException;
41 import java.io.File;
42 import java.io.FileInputStream;
43 import java.net.MalformedURLException ;
44 import java.security.AccessController;
45 import java.security.PrivilegedAction;
46 import java.util.Properties;
47 import java.rmi.server.RMIClassLoader;
48
49 import com.sun.corba.se.impl.orbutil.GetPropertyAction;
50
51
52 /**
53 * Base class from which all RMI-IIOP stubs must inherit.
54 *
55 * @since 1.3
56 */
57 public abstract class Stub extends ObjectImpl
58 implements java.io.Serializable {
59
60 private static final long serialVersionUID = 1087775603798577179L;
61
62 // This can only be set at object construction time (no sync necessary).
63 private transient StubDelegate stubDelegate = null;
64 private static Class stubDelegateClass = null;
65 private static final String StubClassKey = "javax.rmi.CORBA.StubClass";
66
67 static {
68 Object stubDelegateInstance = createDelegate(StubClassKey);
69 if (stubDelegateInstance != null)
70 stubDelegateClass = stubDelegateInstance.getClass();
71 }
72
73
74 /**
75 * Returns a hash code value for the object which is the same for all stubs
|