本文整理汇总了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 ;
}
示例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 ) ;
}
示例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() ;
}
示例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() ;
}