0N/A/*
157N/A * Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
157N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
157N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
157N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
157N/A * or visit www.oracle.com if you need additional information or have any
157N/A * questions.
0N/A */
0N/A/*
0N/A * Licensed Materials - Property of IBM
0N/A * RMI-IIOP v1.0
0N/A * Copyright IBM Corp. 1998 1999 All Rights Reserved
0N/A *
0N/A */
0N/A
0N/Apackage javax.rmi.CORBA;
0N/A
0N/Aimport java.io.Serializable;
0N/Aimport java.rmi.Remote;
0N/Aimport java.rmi.RemoteException;
0N/Aimport javax.rmi.CORBA.Tie;
0N/Aimport javax.rmi.CORBA.ValueHandler;
0N/Aimport org.omg.CORBA.ORB;
0N/Aimport org.omg.CORBA.portable.InputStream;
0N/Aimport org.omg.CORBA.portable.OutputStream;
0N/Aimport org.omg.CORBA.SystemException;
0N/A
0N/A/**
0N/A * Supports delegation for method implementations in {@link Util}. The
0N/A * delegate is a singleton instance of a class that implements this
0N/A * interface and provides a replacement implementation for all the
0N/A * methods of <code>javax.rmi.CORBA.Util</code>.
0N/A *
0N/A * Delegation is enabled by providing the delegate's class name as the
0N/A * value of the
0N/A * <code>javax.rmi.CORBA.UtilClass</code>
0N/A * system property.
0N/A *
0N/A * @see Util
0N/A */
0N/Apublic interface UtilDelegate {
0N/A
0N/A /**
0N/A * Delegation call for {@link Util#mapSystemException}.
0N/A */
0N/A RemoteException mapSystemException(SystemException ex);
0N/A
0N/A /**
0N/A * Delegation call for {@link Util#writeAny}.
0N/A */
0N/A void writeAny(OutputStream out, Object obj);
0N/A
0N/A /**
0N/A * Delegation call for {@link Util#readAny}.
0N/A */
0N/A java.lang.Object readAny(InputStream in);
0N/A
0N/A /**
0N/A * Delegation call for {@link Util#writeRemoteObject}.
0N/A */
0N/A void writeRemoteObject(OutputStream out, Object obj);
0N/A
0N/A /**
0N/A * Delegation call for {@link Util#writeAbstractObject}.
0N/A */
0N/A void writeAbstractObject(OutputStream out, Object obj);
0N/A
0N/A /**
0N/A * Delegation call for {@link Util#registerTarget}.
0N/A */
0N/A void registerTarget(Tie tie, Remote target);
0N/A
0N/A /**
0N/A * Delegation call for {@link Util#unexportObject}.
0N/A */
0N/A void unexportObject(Remote target) throws java.rmi.NoSuchObjectException;
0N/A
0N/A /**
0N/A * Delegation call for {@link Util#getTie}.
0N/A */
0N/A Tie getTie(Remote target);
0N/A
0N/A /**
0N/A * Delegation call for {@link Util#createValueHandler}.
0N/A */
0N/A ValueHandler createValueHandler();
0N/A
0N/A /**
0N/A * Delegation call for {@link Util#getCodebase}.
0N/A */
0N/A String getCodebase(Class clz);
0N/A
0N/A /**
0N/A * Delegation call for {@link Util#loadClass}.
0N/A */
0N/A Class loadClass(String className, String remoteCodebase, ClassLoader loader)
0N/A throws ClassNotFoundException;
0N/A
0N/A /**
0N/A * Delegation call for {@link Util#isLocal}.
0N/A */
0N/A boolean isLocal(Stub stub) throws RemoteException;
0N/A
0N/A /**
0N/A * Delegation call for {@link Util#wrapException}.
0N/A */
0N/A RemoteException wrapException(Throwable obj);
0N/A
0N/A /**
0N/A * Delegation call for {@link Util#copyObject}.
0N/A */
0N/A Object copyObject(Object obj, ORB orb) throws RemoteException;
0N/A
0N/A /**
0N/A * Delegation call for {@link Util#copyObjects}.
0N/A */
0N/A Object[] copyObjects(Object[] obj, ORB orb) throws RemoteException;
0N/A
0N/A}