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


Java CodecFactory类代码示例

本文整理汇总了Java中org.omg.IOP.CodecFactory的典型用法代码示例。如果您正苦于以下问题:Java CodecFactory类的具体用法?Java CodecFactory怎么用?Java CodecFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: ORBInitInfoImpl

import org.omg.IOP.CodecFactory; //导入依赖的package包/类
/**
 * Creates a new ORBInitInfoImpl object (scoped to package)
 *
 * @param args The arguments passed to ORB_init.
 */
ORBInitInfoImpl( ORB orb, String[] args,
    String orbId, CodecFactory codecFactory )
{
    this.orb = orb;

    wrapper = InterceptorsSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    orbutilWrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;

    this.args = args;
    this.orbId = orbId;
    this.codecFactory = codecFactory;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:22,代码来源:ORBInitInfoImpl.java

示例2: init_codec

import org.omg.IOP.CodecFactory; //导入依赖的package包/类
/**
 * Gets the Codec reference from the ORB.
 */
private void init_codec() throws CannotProceed
{
  try {
  CodecFactory factory = 
    CodecFactoryHelper.narrow(orb.resolve_initial_references("CodecFactory"));
  
  Encoding coding = 
    new Encoding(org.omg.IOP.ENCODING_CDR_ENCAPS.value,(byte)1,(byte)2);
  
  codec = factory.create_codec(coding);
  } catch (Throwable th) {
    throw new CannotProceed(th.toString());
  }
}
 
开发者ID:AlvaroVega,项目名称:TIDNamingJ,代码行数:18,代码来源:ConfFile.java

示例3: codec_factory

import org.omg.IOP.CodecFactory; //导入依赖的package包/类
/**
 * Get the codec factory.
 */
public CodecFactory codec_factory()
{
  return m_codecFactory;
}
 
开发者ID:vilie,项目名称:javify,代码行数:8,代码来源:Registrator.java

示例4: codec_factory

import org.omg.IOP.CodecFactory; //导入依赖的package包/类
/**
 * This attribute is the IOP::CodecFactory.  The CodecFactory is normally
 * obtained via a call to ORB::resolve_initial_references( "CodecFactory" )
 * but since the ORB is not yet available and Interceptors, particularly
 * when processing service contexts, will require a Codec, a means of
 * obtaining a Codec is necessary during ORB intialization.
 */
public CodecFactory codec_factory () {
    checkStage();
    return codecFactory;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:ORBInitInfoImpl.java

示例5: codec_factory

import org.omg.IOP.CodecFactory; //导入依赖的package包/类
/**
 * Get the CodecFactory that may be needed during the interceptor
 * initialization. The method ORB.resolve_initial_references ("CodecFactory")
 * cannot be used during ORB initialization.
 *
 * @return the CodecFactory.
 */
CodecFactory codec_factory();
 
开发者ID:vilie,项目名称:javify,代码行数:9,代码来源:ORBInitInfoOperations.java


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