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


Java IORFactories.makeIORTemplateList方法代码示例

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


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

示例1: getIORTemplateList

import com.sun.corba.se.spi.ior.IORFactories; //导入方法依赖的package包/类
public IORTemplateList getIORTemplateList()
{
    IORTemplateList tl = IORFactories.makeIORTemplateList() ;
    tl.add( iorTemplate ) ;
    tl.makeImmutable() ;
    return tl ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:ObjectReferenceTemplateImpl.java

示例2: _read

import com.sun.corba.se.spi.ior.IORFactories; //导入方法依赖的package包/类
/** Read the data into a (presumably) empty ObjectReferenceFactoryImpl.
* This sets the orb to the ORB of the InputStream.
*/
public void _read( InputStream is )
{
    org.omg.CORBA_2_3.portable.InputStream istr =
        (org.omg.CORBA_2_3.portable.InputStream)is ;

    iorTemplates = IORFactories.makeIORTemplateList( istr ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:ObjectReferenceFactoryImpl.java

示例3: IORImpl

import com.sun.corba.se.spi.ior.IORFactories; //导入方法依赖的package包/类
/** Construct an IOR from an IORTemplate by applying the same
* object id to each TaggedProfileTemplate in the IORTemplate.
*/
public IORImpl( ORB orb, String typeId, IORTemplate iortemp, ObjectId id)
{
    this( orb, typeId ) ;

    this.iortemps = IORFactories.makeIORTemplateList() ;
    this.iortemps.add( iortemp ) ;

    addTaggedProfiles( iortemp, id ) ;

    makeImmutable() ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:IORImpl.java

示例4: initializeIORTemplateList

import com.sun.corba.se.spi.ior.IORFactories; //导入方法依赖的package包/类
private void initializeIORTemplateList()
{
    // Maps ObjectKeyTemplate to IORTemplate
    Map oktempToIORTemplate = new HashMap() ;

    iortemps = IORFactories.makeIORTemplateList() ;
    Iterator iter = iterator() ;
    ObjectId oid = null ; // used to check that all profiles have the same oid.
    while (iter.hasNext()) {
        TaggedProfile prof = (TaggedProfile)(iter.next()) ;
        TaggedProfileTemplate ptemp = prof.getTaggedProfileTemplate() ;
        ObjectKeyTemplate oktemp = prof.getObjectKeyTemplate() ;

        // Check that all oids for all profiles are the same: if they are not,
        // throw exception.
        if (oid == null)
            oid = prof.getObjectId() ;
        else if (!oid.equals( prof.getObjectId() ))
            throw wrapper.badOidInIorTemplateList() ;

        // Find or create the IORTemplate for oktemp.
        IORTemplate iortemp = (IORTemplate)(oktempToIORTemplate.get( oktemp )) ;
        if (iortemp == null) {
            iortemp = IORFactories.makeIORTemplate( oktemp ) ;
            oktempToIORTemplate.put( oktemp, iortemp ) ;
            iortemps.add( iortemp ) ;
        }

        iortemp.add( ptemp ) ;
    }

    iortemps.makeImmutable() ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:34,代码来源:IORImpl.java


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