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


Java IORFactories.makeIORTemplate方法代码示例

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


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

示例1: BootstrapResolverImpl

import com.sun.corba.se.spi.ior.IORFactories; //导入方法依赖的package包/类
public BootstrapResolverImpl(ORB orb, String host, int port) {
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;

    // Create a new IOR with the magic of INIT
    byte[] initialKey = "INIT".getBytes() ;
    ObjectKey okey = orb.getObjectKeyFactory().create(initialKey) ;

    IIOPAddress addr = IIOPFactories.makeIIOPAddress( orb, host, port ) ;
    IIOPProfileTemplate ptemp = IIOPFactories.makeIIOPProfileTemplate(
        orb, GIOPVersion.V1_0, addr);

    IORTemplate iortemp = IORFactories.makeIORTemplate( okey.getTemplate() ) ;
    iortemp.add( ptemp ) ;

    IOR initialIOR = iortemp.makeIOR( (com.sun.corba.se.spi.orb.ORB)orb,
        "", okey.getId() ) ;

    bootstrapDelegate = ORBUtility.makeClientDelegate( initialIOR ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:21,代码来源:BootstrapResolverImpl.java

示例2: initializeTemplate

import com.sun.corba.se.spi.ior.IORFactories; //导入方法依赖的package包/类
final public void initializeTemplate( ObjectKeyTemplate oktemp,
    boolean notifyORB, Policies policies, String codebase,
    String objectAdapterManagerId, ObjectAdapterId objectAdapterId)
{
    adapterId = oktemp.getAdapterId() ;

    iortemp = IORFactories.makeIORTemplate(oktemp) ;

    // This calls acceptors which create profiles and may
    // add tagged components to those profiles.
    orb.getCorbaTransportManager().addToIORTemplate(
        iortemp, policies,
        codebase, objectAdapterManagerId, objectAdapterId);

    adapterTemplate = IORFactories.makeObjectReferenceTemplate( orb,
        iortemp ) ;
    currentFactory = adapterTemplate ;

    if (notifyORB) {
        PIHandler pih = orb.getPIHandler() ;
        if (pih != null)
            // This runs the IORInterceptors.
            pih.objectAdapterCreated( this ) ;
    }

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

示例3: _read

import com.sun.corba.se.spi.ior.IORFactories; //导入方法依赖的package包/类
/** Read the data into a (presumably) empty ORTImpl.  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 ;
    iorTemplate = IORFactories.makeIORTemplate( istr ) ;
    orb = (ORB)(istr.orb()) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:ObjectReferenceTemplateImpl.java

示例4: IORTemplateListImpl

import com.sun.corba.se.spi.ior.IORFactories; //导入方法依赖的package包/类
public IORTemplateListImpl( InputStream is )
{
    this() ;
    int size = is.read_long() ;
    for (int ctr=0; ctr<size; ctr++) {
        IORTemplate iortemp = IORFactories.makeIORTemplate( is ) ;
        add( iortemp ) ;
    }

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

示例5: 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.makeIORTemplate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。