KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > rmi > server > RemoteStub


1 /*
2  * @(#)RemoteStub.java 1.21 04/05/18
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 package java.rmi.server;
8
9 /**
10  * The <code>RemoteStub</code> class is the common superclass to client
11  * stubs and provides the framework to support a wide range of remote
12  * reference semantics. Stub objects are surrogates that support
13  * exactly the same set of remote interfaces defined by the actual
14  * implementation of the remote object.
15  *
16  * @version 1.21, 05/18/04
17  * @author Ann Wollrath
18  * @since JDK1.1
19  */

20 abstract public class RemoteStub extends RemoteObject JavaDoc {
21     
22     /** indicate compatibility with JDK 1.1.x version of class */
23     private static final long serialVersionUID = -1585587260594494182L;
24     
25     /**
26      * Constructs a <code>RemoteStub</code>.
27      */

28     protected RemoteStub() {
29         super();
30     }
31     
32     /**
33      * Constructs a <code>RemoteStub</code>, with the specified remote
34      * reference.
35      *
36      * @param ref the remote reference
37      * @since JDK1.1
38      */

39     protected RemoteStub(RemoteRef JavaDoc ref) {
40     super(ref);
41     }
42
43     /**
44      * Sets the remote reference inside the remote stub.
45      *
46      * @param stub the remote stub
47      * @param ref the remote reference
48      * @since JDK1.1
49      * @deprecated no replacement. The <code>setRef</code> method
50      * is not needed since <code>RemoteStub</code>s can be created with
51      * the <code>RemoteStub(RemoteRef)</code> constructor.
52      */

53     @Deprecated JavaDoc
54     protected static void setRef(RemoteStub JavaDoc stub, RemoteRef JavaDoc ref) {
55     throw new UnsupportedOperationException JavaDoc();
56     }
57 }
58
Popular Tags