KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)UtilDelegate.java 1.15 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.Serializable JavaDoc;
19 import java.rmi.Remote JavaDoc;
20 import java.rmi.RemoteException JavaDoc;
21 import javax.rmi.CORBA.Tie JavaDoc;
22 import javax.rmi.CORBA.ValueHandler JavaDoc;
23 import org.omg.CORBA.ORB JavaDoc;
24 import org.omg.CORBA.portable.InputStream JavaDoc;
25 import org.omg.CORBA.portable.OutputStream JavaDoc;
26 import org.omg.CORBA.SystemException JavaDoc;
27
28 /**
29  * Supports delegation for method implementations in {@link Util}. The
30  * delegate is a singleton instance of a class that implements this
31  * interface and provides a replacement implementation for all the
32  * methods of <code>javax.rmi.CORBA.Util</code>.
33  *
34  * Delegation is enabled by providing the delegate's class name as the
35  * value of the
36  * <code>javax.rmi.CORBA.UtilClass</code>
37  * system property.
38  *
39  * @see Util
40  */

41 public interface UtilDelegate {
42
43     /**
44      * Delegation call for {@link Util#mapSystemException}.
45      */

46     RemoteException JavaDoc mapSystemException(SystemException JavaDoc ex);
47
48     /**
49      * Delegation call for {@link Util#writeAny}.
50      */

51     void writeAny(OutputStream JavaDoc out, Object JavaDoc obj);
52
53     /**
54      * Delegation call for {@link Util#readAny}.
55      */

56     java.lang.Object JavaDoc readAny(InputStream JavaDoc in);
57
58     /**
59      * Delegation call for {@link Util#writeRemoteObject}.
60      */

61     void writeRemoteObject(OutputStream JavaDoc out, Object JavaDoc obj);
62
63     /**
64      * Delegation call for {@link Util#writeAbstractObject}.
65      */

66     void writeAbstractObject(OutputStream JavaDoc out, Object JavaDoc obj);
67
68     /**
69      * Delegation call for {@link Util#registerTarget}.
70      */

71     void registerTarget(Tie JavaDoc tie, Remote JavaDoc target);
72     
73     /**
74      * Delegation call for {@link Util#unexportObject}.
75      */

76     void unexportObject(Remote JavaDoc target) throws java.rmi.NoSuchObjectException JavaDoc;
77     
78     /**
79      * Delegation call for {@link Util#getTie}.
80      */

81     Tie JavaDoc getTie(Remote JavaDoc target);
82
83     /**
84      * Delegation call for {@link Util#createValueHandler}.
85      */

86     ValueHandler JavaDoc createValueHandler();
87
88     /**
89      * Delegation call for {@link Util#getCodebase}.
90      */

91     String JavaDoc getCodebase(Class JavaDoc clz);
92
93     /**
94      * Delegation call for {@link Util#loadClass}.
95      */

96     Class JavaDoc loadClass(String JavaDoc className, String JavaDoc remoteCodebase, ClassLoader JavaDoc loader)
97         throws ClassNotFoundException JavaDoc;
98
99     /**
100      * Delegation call for {@link Util#isLocal}.
101      */

102     boolean isLocal(Stub JavaDoc stub) throws RemoteException JavaDoc;
103
104     /**
105      * Delegation call for {@link Util#wrapException}.
106      */

107     RemoteException JavaDoc wrapException(Throwable JavaDoc obj);
108
109     /**
110      * Delegation call for {@link Util#copyObject}.
111      */

112     Object JavaDoc copyObject(Object JavaDoc obj, ORB JavaDoc orb) throws RemoteException JavaDoc;
113     
114     /**
115      * Delegation call for {@link Util#copyObjects}.
116      */

117     Object JavaDoc[] copyObjects(Object JavaDoc[] obj, ORB JavaDoc orb) throws RemoteException JavaDoc;
118
119 }
120         
121
Popular Tags