本文整理汇总了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;
}
示例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());
}
}
示例3: codec_factory
import org.omg.IOP.CodecFactory; //导入依赖的package包/类
/**
* Get the codec factory.
*/
public CodecFactory codec_factory()
{
return m_codecFactory;
}
示例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;
}
示例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();