本文整理汇总了Java中com.sun.corba.se.impl.orb.ORBVersionImpl类的典型用法代码示例。如果您正苦于以下问题:Java ORBVersionImpl类的具体用法?Java ORBVersionImpl怎么用?Java ORBVersionImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ORBVersionImpl类属于com.sun.corba.se.impl.orb包,在下文中一共展示了ORBVersionImpl类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: byteToVersion
import com.sun.corba.se.impl.orb.ORBVersionImpl; //导入依赖的package包/类
private static ORBVersion byteToVersion( byte value )
{
/* Throwing an exception here would cause this version to be
* incompatible with future versions of the ORB, to the point
* that this version could
* not even unmarshal objrefs from a newer version that uses
* extended versioning. Therefore, we will simply treat all
* unknown versions as the latest version.
if (value < 0)
throw new INTERNAL() ;
*/
/**
* Update: If we treat all unknown versions as the latest version
* then when we send an IOR with a PEORB version to an ORB that
* doesn't know the PEORB version it will treat it as whatever
* its idea of the latest version is. Then, if that IOR is
* sent back to the server and compared with the original
* the equality check will fail because the versions will be
* different.
*
* Instead, just capture the version bytes.
*/
switch (value) {
case ORBVersion.FOREIGN : return ORBVersionImpl.FOREIGN ;
case ORBVersion.OLD : return ORBVersionImpl.OLD ;
case ORBVersion.NEW : return ORBVersionImpl.NEW ;
case ORBVersion.JDK1_3_1_01: return ORBVersionImpl.JDK1_3_1_01 ;
case ORBVersion.NEWER : return ORBVersionImpl.NEWER ;
case ORBVersion.PEORB : return ORBVersionImpl.PEORB ;
default : return new ORBVersionImpl(value);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:35,代码来源:ORBVersionFactory.java
示例2: getFOREIGN
import com.sun.corba.se.impl.orb.ORBVersionImpl; //导入依赖的package包/类
public static ORBVersion getFOREIGN()
{
return ORBVersionImpl.FOREIGN ;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:ORBVersionFactory.java
示例3: getOLD
import com.sun.corba.se.impl.orb.ORBVersionImpl; //导入依赖的package包/类
public static ORBVersion getOLD()
{
return ORBVersionImpl.OLD ;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:ORBVersionFactory.java
示例4: getNEW
import com.sun.corba.se.impl.orb.ORBVersionImpl; //导入依赖的package包/类
public static ORBVersion getNEW()
{
return ORBVersionImpl.NEW ;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:ORBVersionFactory.java
示例5: getJDK1_3_1_01
import com.sun.corba.se.impl.orb.ORBVersionImpl; //导入依赖的package包/类
public static ORBVersion getJDK1_3_1_01()
{
return ORBVersionImpl.JDK1_3_1_01 ;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:ORBVersionFactory.java
示例6: getNEWER
import com.sun.corba.se.impl.orb.ORBVersionImpl; //导入依赖的package包/类
public static ORBVersion getNEWER()
{
return ORBVersionImpl.NEWER ;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:ORBVersionFactory.java
示例7: getPEORB
import com.sun.corba.se.impl.orb.ORBVersionImpl; //导入依赖的package包/类
public static ORBVersion getPEORB()
{
return ORBVersionImpl.PEORB ;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:ORBVersionFactory.java
示例8: getORBVersion
import com.sun.corba.se.impl.orb.ORBVersionImpl; //导入依赖的package包/类
/** Return the current version of this ORB
*/
public static ORBVersion getORBVersion()
{
return ORBVersionImpl.PEORB ;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:ORBVersionFactory.java
注:本文中的com.sun.corba.se.impl.orb.ORBVersionImpl类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论