KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > rmi > CORBA > StubDelegate


1 /*
2  * @(#)StubDelegate.java 1.14 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 /*
8  * Licensed Materials - Property of IBM
9  * RMI-IIOP v1.0
10  * Copyright IBM Corp. 1998 1999 All Rights Reserved
11  *
12  * US Government Users Restricted Rights - Use, duplication or
13  * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
14  */

15
16 package javax.rmi.CORBA;
17
18 import java.io.IOException JavaDoc;
19 import java.io.ObjectInputStream JavaDoc;
20 import java.io.ObjectOutputStream JavaDoc;
21 import java.rmi.RemoteException JavaDoc;
22 import org.omg.CORBA.ORB JavaDoc;
23
24 /**
25  * Supports delegation for method implementations in {@link Stub}.
26  * A delegate is an instance of a class that implements this
27  * interface and provides a replacement implementation for all the
28  * methods of <code>javax.rmi.CORBA.Stub</code>. If delegation is
29  * enabled, each stub has an associated delegate.
30  *
31  * Delegates are enabled by providing the delegate's class name as the
32  * value of the
33  * <code>javax.rmi.CORBA.StubClass</code>
34  * system property.
35  *
36  * @see Stub
37  */

38 public interface StubDelegate {
39
40     /**
41      * Delegation call for {@link Stub#hashCode}.
42      */

43     int hashCode(Stub JavaDoc self);
44
45     /**
46      * Delegation call for {@link Stub#equals}.
47      */

48     boolean equals(Stub JavaDoc self, java.lang.Object JavaDoc obj);
49
50     /**
51      * Delegation call for {@link Stub#toString}.
52      */

53     String JavaDoc toString(Stub JavaDoc self);
54
55     /**
56      * Delegation call for {@link Stub#connect}.
57      */

58     void connect(Stub JavaDoc self, ORB JavaDoc orb)
59     throws RemoteException JavaDoc;
60  
61     // _REVISIT_ cannot link to Stub.readObject directly... why not?
62
/**
63      * Delegation call for
64      * <a HREF="{@docRoot}/serialized-form.html#javax.rmi.CORBA.Stub"><code>Stub.readObject(java.io.ObjectInputStream)</code></a>.
65      */

66     void readObject(Stub JavaDoc self, ObjectInputStream JavaDoc s)
67         throws IOException JavaDoc, ClassNotFoundException JavaDoc;
68
69     // _REVISIT_ cannot link to Stub.writeObject directly... why not?
70
/**
71      * Delegation call for
72      * <a HREF="{@docRoot}/serialized-form.html#javax.rmi.CORBA.Stub"><code>Stub.writeObject(java.io.ObjectOutputStream)</code></a>.
73      */

74     void writeObject(Stub JavaDoc self, ObjectOutputStream JavaDoc s)
75         throws IOException JavaDoc;
76
77 }
78
Popular Tags