Wed, 26 Feb 2014 14:43:56 -0800
Added tag jdk8u20-b03 for changeset 9059a1c85704
duke@1 | 1 | /* |
ohair@158 | 2 | * Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved. |
duke@1 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
duke@1 | 4 | * |
duke@1 | 5 | * This code is free software; you can redistribute it and/or modify it |
duke@1 | 6 | * under the terms of the GNU General Public License version 2 only, as |
ohair@158 | 7 | * published by the Free Software Foundation. Oracle designates this |
duke@1 | 8 | * particular file as subject to the "Classpath" exception as provided |
ohair@158 | 9 | * by Oracle in the LICENSE file that accompanied this code. |
duke@1 | 10 | * |
duke@1 | 11 | * This code is distributed in the hope that it will be useful, but WITHOUT |
duke@1 | 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
duke@1 | 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
duke@1 | 14 | * version 2 for more details (a copy is included in the LICENSE file that |
duke@1 | 15 | * accompanied this code). |
duke@1 | 16 | * |
duke@1 | 17 | * You should have received a copy of the GNU General Public License version |
duke@1 | 18 | * 2 along with this work; if not, write to the Free Software Foundation, |
duke@1 | 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
duke@1 | 20 | * |
ohair@158 | 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@158 | 22 | * or visit www.oracle.com if you need additional information or have any |
ohair@158 | 23 | * questions. |
duke@1 | 24 | */ |
duke@1 | 25 | /* |
duke@1 | 26 | * Licensed Materials - Property of IBM |
duke@1 | 27 | * RMI-IIOP v1.0 |
duke@1 | 28 | * Copyright IBM Corp. 1998 1999 All Rights Reserved |
duke@1 | 29 | * |
duke@1 | 30 | */ |
duke@1 | 31 | |
duke@1 | 32 | package javax.rmi.CORBA; |
duke@1 | 33 | |
duke@1 | 34 | import java.io.Serializable; |
duke@1 | 35 | import java.rmi.Remote; |
duke@1 | 36 | import java.rmi.RemoteException; |
duke@1 | 37 | import javax.rmi.CORBA.Tie; |
duke@1 | 38 | import javax.rmi.CORBA.ValueHandler; |
duke@1 | 39 | import org.omg.CORBA.ORB; |
duke@1 | 40 | import org.omg.CORBA.portable.InputStream; |
duke@1 | 41 | import org.omg.CORBA.portable.OutputStream; |
duke@1 | 42 | import org.omg.CORBA.SystemException; |
duke@1 | 43 | |
duke@1 | 44 | /** |
duke@1 | 45 | * Supports delegation for method implementations in {@link Util}. The |
duke@1 | 46 | * delegate is a singleton instance of a class that implements this |
duke@1 | 47 | * interface and provides a replacement implementation for all the |
duke@1 | 48 | * methods of <code>javax.rmi.CORBA.Util</code>. |
duke@1 | 49 | * |
duke@1 | 50 | * Delegation is enabled by providing the delegate's class name as the |
duke@1 | 51 | * value of the |
duke@1 | 52 | * <code>javax.rmi.CORBA.UtilClass</code> |
duke@1 | 53 | * system property. |
duke@1 | 54 | * |
duke@1 | 55 | * @see Util |
duke@1 | 56 | */ |
duke@1 | 57 | public interface UtilDelegate { |
duke@1 | 58 | |
duke@1 | 59 | /** |
duke@1 | 60 | * Delegation call for {@link Util#mapSystemException}. |
duke@1 | 61 | */ |
duke@1 | 62 | RemoteException mapSystemException(SystemException ex); |
duke@1 | 63 | |
duke@1 | 64 | /** |
duke@1 | 65 | * Delegation call for {@link Util#writeAny}. |
duke@1 | 66 | */ |
duke@1 | 67 | void writeAny(OutputStream out, Object obj); |
duke@1 | 68 | |
duke@1 | 69 | /** |
duke@1 | 70 | * Delegation call for {@link Util#readAny}. |
duke@1 | 71 | */ |
duke@1 | 72 | java.lang.Object readAny(InputStream in); |
duke@1 | 73 | |
duke@1 | 74 | /** |
duke@1 | 75 | * Delegation call for {@link Util#writeRemoteObject}. |
duke@1 | 76 | */ |
duke@1 | 77 | void writeRemoteObject(OutputStream out, Object obj); |
duke@1 | 78 | |
duke@1 | 79 | /** |
duke@1 | 80 | * Delegation call for {@link Util#writeAbstractObject}. |
duke@1 | 81 | */ |
duke@1 | 82 | void writeAbstractObject(OutputStream out, Object obj); |
duke@1 | 83 | |
duke@1 | 84 | /** |
duke@1 | 85 | * Delegation call for {@link Util#registerTarget}. |
duke@1 | 86 | */ |
duke@1 | 87 | void registerTarget(Tie tie, Remote target); |
duke@1 | 88 | |
duke@1 | 89 | /** |
duke@1 | 90 | * Delegation call for {@link Util#unexportObject}. |
duke@1 | 91 | */ |
duke@1 | 92 | void unexportObject(Remote target) throws java.rmi.NoSuchObjectException; |
duke@1 | 93 | |
duke@1 | 94 | /** |
duke@1 | 95 | * Delegation call for {@link Util#getTie}. |
duke@1 | 96 | */ |
duke@1 | 97 | Tie getTie(Remote target); |
duke@1 | 98 | |
duke@1 | 99 | /** |
duke@1 | 100 | * Delegation call for {@link Util#createValueHandler}. |
duke@1 | 101 | */ |
duke@1 | 102 | ValueHandler createValueHandler(); |
duke@1 | 103 | |
duke@1 | 104 | /** |
duke@1 | 105 | * Delegation call for {@link Util#getCodebase}. |
duke@1 | 106 | */ |
duke@1 | 107 | String getCodebase(Class clz); |
duke@1 | 108 | |
duke@1 | 109 | /** |
duke@1 | 110 | * Delegation call for {@link Util#loadClass}. |
duke@1 | 111 | */ |
duke@1 | 112 | Class loadClass(String className, String remoteCodebase, ClassLoader loader) |
duke@1 | 113 | throws ClassNotFoundException; |
duke@1 | 114 | |
duke@1 | 115 | /** |
duke@1 | 116 | * Delegation call for {@link Util#isLocal}. |
duke@1 | 117 | */ |
duke@1 | 118 | boolean isLocal(Stub stub) throws RemoteException; |
duke@1 | 119 | |
duke@1 | 120 | /** |
duke@1 | 121 | * Delegation call for {@link Util#wrapException}. |
duke@1 | 122 | */ |
duke@1 | 123 | RemoteException wrapException(Throwable obj); |
duke@1 | 124 | |
duke@1 | 125 | /** |
duke@1 | 126 | * Delegation call for {@link Util#copyObject}. |
duke@1 | 127 | */ |
duke@1 | 128 | Object copyObject(Object obj, ORB orb) throws RemoteException; |
duke@1 | 129 | |
duke@1 | 130 | /** |
duke@1 | 131 | * Delegation call for {@link Util#copyObjects}. |
duke@1 | 132 | */ |
duke@1 | 133 | Object[] copyObjects(Object[] obj, ORB orb) throws RemoteException; |
duke@1 | 134 | |
duke@1 | 135 | } |