22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package java.rmi.server;
27
28 import java.rmi.Remote;
29 import java.rmi.NoSuchObjectException;
30 import java.lang.reflect.Proxy;
31 import sun.rmi.server.Util;
32
33 /**
34 * The <code>RemoteObject</code> class implements the
35 * <code>java.lang.Object</code> behavior for remote objects.
36 * <code>RemoteObject</code> provides the remote semantics of Object by
37 * implementing methods for hashCode, equals, and toString.
38 *
39 * @author Ann Wollrath
40 * @author Laird Dornin
41 * @author Peter Jones
42 * @since JDK1.1
43 */
44 public abstract class RemoteObject implements Remote, java.io.Serializable {
45
46 /** The object's remote reference. */
47 transient protected RemoteRef ref;
48
49 /** indicate compatibility with JDK 1.1.x version of class */
50 private static final long serialVersionUID = -3215090123894869218L;
51
52 /**
53 * Creates a remote object.
54 */
55 protected RemoteObject() {
56 ref = null;
57 }
58
59 /**
60 * Creates a remote object, initialized with the specified remote
61 * reference.
62 * @param newref remote reference
|
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package java.rmi.server;
27
28 import java.rmi.Remote;
29 import java.rmi.NoSuchObjectException;
30 import java.lang.reflect.Proxy;
31 import sun.rmi.server.Util;
32
33 /**
34 * The <code>RemoteObject</code> class implements the
35 * <code>java.lang.Object</code> behavior for remote objects.
36 * <code>RemoteObject</code> provides the remote semantics of Object by
37 * implementing methods for hashCode, equals, and toString.
38 *
39 * @author Ann Wollrath
40 * @author Laird Dornin
41 * @author Peter Jones
42 * @since 1.1
43 */
44 public abstract class RemoteObject implements Remote, java.io.Serializable {
45
46 /** The object's remote reference. */
47 transient protected RemoteRef ref;
48
49 /** indicate compatibility with JDK 1.1.x version of class */
50 private static final long serialVersionUID = -3215090123894869218L;
51
52 /**
53 * Creates a remote object.
54 */
55 protected RemoteObject() {
56 ref = null;
57 }
58
59 /**
60 * Creates a remote object, initialized with the specified remote
61 * reference.
62 * @param newref remote reference
|