📄 delegate.java
字号:
/* * @(#)Delegate.java 1.12 05/11/17 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package org.omg.PortableServer.portable;import org.omg.PortableServer.Servant;import org.omg.PortableServer.POA;/** * The portability package contains interfaces and classes * that are designed for and intended to be used by ORB * implementor. It exposes the publicly defined APIs that * are used to connect stubs and skeletons to the ORB. * The Delegate interface provides the ORB vendor specific * implementation of PortableServer::Servant. * Conformant to spec CORBA V2.3.1, ptc/00-01-08.pdf */public interface Delegate {/** * Convenience method that returns the instance of the ORB * currently associated with the Servant. * @param Self the servant. * @return ORB associated with the Servant. */ org.omg.CORBA.ORB orb(Servant Self);/** * This allows the servant to obtain the object reference for * the target CORBA Object it is incarnating for that request. * @param Self the servant. * @return Object reference associated with the request. */ org.omg.CORBA.Object this_object(Servant Self);/** * The method _poa() is equivalent to * calling PortableServer::Current:get_POA. * @param Self the servant. * @return POA associated with the servant. */ POA poa(Servant Self);/** * The method _object_id() is equivalent * to calling PortableServer::Current::get_object_id. * @param Self the servant. * @return ObjectId associated with this servant. */ byte[] object_id(Servant Self);/** * The default behavior of this function is to return the * root POA from the ORB instance associated with the servant. * @param Self the servant. * @return POA associated with the servant class. */ POA default_POA(Servant Self);/** * This method checks to see if the specified repid is present * on the list returned by _all_interfaces() or is the * repository id for the generic CORBA Object. * @param Self the servant. * @param Repository_Id the repository_id to be checked in the * repository list or against the id of generic CORBA * object. * @return boolean indicating whether the specified repid is * in the list or is same as that got generic CORBA * object. */ boolean is_a(Servant Self, String Repository_Id);/** * This operation is used to check for the existence of the * Object. * @param Self the servant. * @return boolean true to indicate that object does not exist, * and false otherwise. */ boolean non_existent(Servant Self); //Simon And Ken Will Ask About Editorial Changes //In Idl To Java For The Following Signature./** * This operation returns an object in the Interface Repository * which provides type information that may be useful to a program. * @param self the servant. * @return type information corresponding to the object. */ // The get_interface() method has been replaced by get_interface_def() //org.omg.CORBA.Object get_interface(Servant Self); org.omg.CORBA.Object get_interface_def(Servant self);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -