当前位置: 首页>>代码示例>>Java>>正文


Java ORBUtility.connectAndGetIOR方法代码示例

本文整理汇总了Java中com.sun.corba.se.impl.orbutil.ORBUtility.connectAndGetIOR方法的典型用法代码示例。如果您正苦于以下问题:Java ORBUtility.connectAndGetIOR方法的具体用法?Java ORBUtility.connectAndGetIOR怎么用?Java ORBUtility.connectAndGetIOR使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.sun.corba.se.impl.orbutil.ORBUtility的用法示例。


在下文中一共展示了ORBUtility.connectAndGetIOR方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: write_Object

import com.sun.corba.se.impl.orbutil.ORBUtility; //导入方法依赖的package包/类
public void write_Object(org.omg.CORBA.Object ref)
{
    if (ref == null) {
        IOR nullIOR = IORFactories.makeIOR( orb ) ;
        nullIOR.write(parent);
        return;
    }

    // IDL to Java formal 01-06-06 1.21.4.2
    if (ref instanceof org.omg.CORBA.LocalObject)
        throw wrapper.writeLocalObject(CompletionStatus.COMPLETED_MAYBE);

    IOR ior = ORBUtility.connectAndGetIOR( orb, ref ) ;
    ior.write(parent);
    return;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:CDROutputStream_1_0.java

示例2: write_Object

import com.sun.corba.se.impl.orbutil.ORBUtility; //导入方法依赖的package包/类
public final void write_Object(org.omg.CORBA.Object value) {
    if (value == null) {
        IOR nullIOR = IORFactories.makeIOR(orb);
        nullIOR.write(parent);
        return;
    }
    // IDL to Java formal 01-06-06 1.21.4.2
    if (value instanceof org.omg.CORBA.LocalObject) {
        throw wrapper.writeLocalObject(CompletionStatus.COMPLETED_MAYBE);
    }
    IOR ior = ORBUtility.connectAndGetIOR(orb, value);
    ior.write(parent);
    return;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:IDLJavaSerializationOutputStream.java

示例3: object_to_string

import com.sun.corba.se.impl.orbutil.ORBUtility; //导入方法依赖的package包/类
/**
 * Convert an object ref to a string.
 * @param obj The object to stringify.
 * @return A stringified object reference.
 */
public synchronized String object_to_string(org.omg.CORBA.Object obj)
{
    checkShutdownState();

    // Handle the null objref case
    if (obj == null) {
        IOR nullIOR = IORFactories.makeIOR( this ) ;
        return nullIOR.stringify();
    }

    IOR ior = null ;

    try {
        ior = ORBUtility.connectAndGetIOR( this, obj ) ;
    } catch (BAD_PARAM bp) {
        // Throw MARSHAL instead if this is a LOCAL_OBJECT_NOT_ALLOWED error.
        if (bp.minor == ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED) {
            throw omgWrapper.notAnObjectImpl( bp ) ;
        } else
            // Not a local object problem: just rethrow the exception.
            // Do not wrap and log this, since it was already logged at its
            // point of origin.
            throw bp ;
    }

    return ior.stringify() ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:33,代码来源:ORBImpl.java


注:本文中的com.sun.corba.se.impl.orbutil.ORBUtility.connectAndGetIOR方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。