📄 delegate.java
字号:
/* * @(#)Delegate.java 1.38 05/11/17 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package org.omg.CORBA.portable;import org.omg.CORBA.Request;import org.omg.CORBA.NamedValue;import org.omg.CORBA.NVList;import org.omg.CORBA.Context;import org.omg.CORBA.ContextList;import org.omg.CORBA.ExceptionList;import org.omg.CORBA.TypeCode;import org.omg.CORBA.SystemException;/** * Specifies a portable API for ORB-vendor-specific * implementation of the org.omg.CORBA.Object methods. * * Each stub (proxy) contains a delegate * object, to which all org.omg.CORBA.Object methods are forwarded. * This allows a stub generated by one vendor's ORB to work with the delegate * from another vendor's ORB. * * @see org.omg.CORBA.Object * @author OMG * @version 1.38 11/17/05 */public abstract class Delegate { /** * Return an InterfaceDef for the object reference provided. * @param self The object reference whose InterfaceDef needs to be returned * @return the InterfaceDef */ public abstract org.omg.CORBA.Object get_interface_def( org.omg.CORBA.Object self); /** * Returns a duplicate of the object reference provided. * @param obj The object reference whose duplicate needs to be returned * @return the duplicate object reference */ public abstract org.omg.CORBA.Object duplicate(org.omg.CORBA.Object obj); /** * Releases resources associated with the object reference provided. * @param obj The object reference whose resources need to be released */ public abstract void release(org.omg.CORBA.Object obj); /** * Checks if the object reference is an instance of the given interface. * @param obj The object reference to be checked. * @param repository_id The repository identifier of the interface * to check against. * @return true if the object reference supports the interface */ public abstract boolean is_a(org.omg.CORBA.Object obj, String repository_id); /** * Determines whether the server object for the object reference has been * destroyed. * @param obj The object reference which delegated to this delegate. * @return true if the ORB knows authoritatively that the server object does * not exist, false otherwise */ public abstract boolean non_existent(org.omg.CORBA.Object obj); /** * Determines if the two object references are equivalent. * @param obj The object reference which delegated to this delegate. * @param other The object reference to check equivalence against. * @return true if the objects are CORBA-equivalent. */ public abstract boolean is_equivalent(org.omg.CORBA.Object obj, org.omg.CORBA.Object other); /** * Returns an ORB-internal identifier (hashcode) for this object reference. * @param obj The object reference which delegated to this delegate. * @param max specifies an upper bound on the hash value returned by * the ORB. * @return ORB-internal hash identifier for object reference */ public abstract int hash(org.omg.CORBA.Object obj, int max); /** * Creates a Request instance for use in the Dynamic Invocation Interface. * @param obj The object reference which delegated to this delegate. * @param operation The name of the operation to be invoked using the * Request instance. * @return the created Request instance */ public abstract Request request(org.omg.CORBA.Object obj, String operation); /** * Creates a Request instance for use in the Dynamic Invocation Interface. * * @param obj The object reference which delegated to this delegate. * @param ctx The context to be used. * @param operation The name of the operation to be * invoked. * @param arg_list The arguments to the operation in the * form of an NVList. * @param result A container for the result as a NamedValue. * @return The created Request object. * */ public abstract Request create_request(org.omg.CORBA.Object obj, Context ctx, String operation, NVList arg_list, NamedValue result); /** * Creates a Request instance for use in the Dynamic Invocation Interface. * * @param obj The object reference which delegated to this delegate. * @param ctx The context to be used. * @param operation The name of the operation to be * invoked. * @param arg_list The arguments to the operation in the * form of an NVList. * @param result A container for the result as a NamedValue. * @param exclist A list of possible exceptions the * operation can throw. * @param ctxlist A list of context strings that need * to be resolved and sent with the * Request. * @return The created Request object. */ public abstract Request create_request(org.omg.CORBA.Object obj, Context ctx, String operation, NVList arg_list, NamedValue result, ExceptionList exclist, ContextList ctxlist); /** * Provides a reference to the orb associated with its parameter. * * @param obj the object reference which delegated to this delegate. * @return the associated orb. * @see <a href="package-summary.html#unimpl"><code>portable</code> * package comments for unimplemented features</a> */ public org.omg.CORBA.ORB orb(org.omg.CORBA.Object obj) { throw new org.omg.CORBA.NO_IMPLEMENT(); } /** * Returns the <code>Policy</code> object of the specified type * which applies to this object. * * @param self The object reference which delegated to this delegate. * @param policy_type The type of policy to be obtained. * @return A <code>Policy</code> object of the type specified by * the policy_type parameter. * @exception org.omg.CORBA.BAD_PARAM raised when the value of policy type * is not valid either because the specified type is not supported by this * ORB or because a policy object of that type is not associated with this * Object. * @see <a href="package-summary.html#unimpl"><code>portable</code> * package comments for unimplemented features</a> */ public org.omg.CORBA.Policy get_policy(org.omg.CORBA.Object self, int policy_type) { throw new org.omg.CORBA.NO_IMPLEMENT(); } /** * Retrieves the <code>DomainManagers</code> of this object. * This allows administration services (and applications) to retrieve the * domain managers, and hence the security and other policies applicable * to individual objects that are members of the domain. * * @param self The object reference which delegated to this delegate. * @return The list of immediately enclosing domain managers of this object. * At least one domain manager is always returned in the list since by * default each object is associated with at least one domain manager at * creation. * @see <a href="package-summary.html#unimpl"><code>portable</code> * package comments for unimplemented features</a> */ public org.omg.CORBA.DomainManager[] get_domain_managers( org.omg.CORBA.Object self) { throw new org.omg.CORBA.NO_IMPLEMENT(); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -