src/share/classes/org/omg/PortableServer/portable/Delegate.java

Thu, 11 Jul 2019 00:03:18 +0100

author
andrew
date
Thu, 11 Jul 2019 00:03:18 +0100
changeset 1929
356cf9da5633
parent 158
91006f157c46
child 748
6845b95cba6b
permissions
-rw-r--r--

Added tag jdk8u222-b10 for changeset d44170c2cece

duke@1 1 /*
ohair@158 2 * Copyright (c) 1999, 2003, 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 package org.omg.PortableServer.portable;
duke@1 26
duke@1 27 import org.omg.PortableServer.Servant;
duke@1 28 import org.omg.PortableServer.POA;
duke@1 29
duke@1 30 /**
duke@1 31 * The portability package contains interfaces and classes
duke@1 32 * that are designed for and intended to be used by ORB
duke@1 33 * implementor. It exposes the publicly defined APIs that
duke@1 34 * are used to connect stubs and skeletons to the ORB.
duke@1 35 * The Delegate interface provides the ORB vendor specific
duke@1 36 * implementation of PortableServer::Servant.
duke@1 37 * Conformant to spec CORBA V2.3.1, ptc/00-01-08.pdf
duke@1 38 */
duke@1 39 public interface Delegate {
duke@1 40 /**
duke@1 41 * Convenience method that returns the instance of the ORB
duke@1 42 * currently associated with the Servant.
duke@1 43 * @param Self the servant.
duke@1 44 * @return ORB associated with the Servant.
duke@1 45 */
duke@1 46 org.omg.CORBA.ORB orb(Servant Self);
duke@1 47
duke@1 48 /**
duke@1 49 * This allows the servant to obtain the object reference for
duke@1 50 * the target CORBA Object it is incarnating for that request.
duke@1 51 * @param Self the servant.
duke@1 52 * @return Object reference associated with the request.
duke@1 53 */
duke@1 54 org.omg.CORBA.Object this_object(Servant Self);
duke@1 55
duke@1 56 /**
duke@1 57 * The method _poa() is equivalent to
duke@1 58 * calling PortableServer::Current:get_POA.
duke@1 59 * @param Self the servant.
duke@1 60 * @return POA associated with the servant.
duke@1 61 */
duke@1 62 POA poa(Servant Self);
duke@1 63
duke@1 64 /**
duke@1 65 * The method _object_id() is equivalent
duke@1 66 * to calling PortableServer::Current::get_object_id.
duke@1 67 * @param Self the servant.
duke@1 68 * @return ObjectId associated with this servant.
duke@1 69 */
duke@1 70 byte[] object_id(Servant Self);
duke@1 71
duke@1 72 /**
duke@1 73 * The default behavior of this function is to return the
duke@1 74 * root POA from the ORB instance associated with the servant.
duke@1 75 * @param Self the servant.
duke@1 76 * @return POA associated with the servant class.
duke@1 77 */
duke@1 78 POA default_POA(Servant Self);
duke@1 79
duke@1 80 /**
duke@1 81 * This method checks to see if the specified repid is present
duke@1 82 * on the list returned by _all_interfaces() or is the
duke@1 83 * repository id for the generic CORBA Object.
duke@1 84 * @param Self the servant.
duke@1 85 * @param Repository_Id the repository_id to be checked in the
duke@1 86 * repository list or against the id of generic CORBA
duke@1 87 * object.
duke@1 88 * @return boolean indicating whether the specified repid is
duke@1 89 * in the list or is same as that got generic CORBA
duke@1 90 * object.
duke@1 91 */
duke@1 92 boolean is_a(Servant Self, String Repository_Id);
duke@1 93
duke@1 94 /**
duke@1 95 * This operation is used to check for the existence of the
duke@1 96 * Object.
duke@1 97 * @param Self the servant.
duke@1 98 * @return boolean true to indicate that object does not exist,
duke@1 99 * and false otherwise.
duke@1 100 */
duke@1 101 boolean non_existent(Servant Self);
duke@1 102 //Simon And Ken Will Ask About Editorial Changes
duke@1 103 //In Idl To Java For The Following Signature.
duke@1 104
duke@1 105 /**
duke@1 106 * This operation returns an object in the Interface Repository
duke@1 107 * which provides type information that may be useful to a program.
duke@1 108 * @param self the servant.
duke@1 109 * @return type information corresponding to the object.
duke@1 110 */
duke@1 111 // The get_interface() method has been replaced by get_interface_def()
duke@1 112 //org.omg.CORBA.Object get_interface(Servant Self);
duke@1 113
duke@1 114 org.omg.CORBA.Object get_interface_def(Servant self);
duke@1 115 }

mercurial