本文整理了Java中javax.rmi.CORBA.Util.createValueHandler()
方法的一些代码示例,展示了Util.createValueHandler()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.createValueHandler()
方法的具体详情如下:
包路径:javax.rmi.CORBA.Util
类名称:Util
方法名:createValueHandler
暂无
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public ValueHandler run() throws Exception {
return Util.createValueHandler();
}
});
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public ValueHandler run() throws Exception {
return Util.createValueHandler();
}
});
代码示例来源:origin: org.jacorb/jacorb
public static java.io.Serializable readValue(
org.omg.CORBA.portable.InputStream in, int offset, Class clz,
String repositoryID, org.omg.SendingContext.RunTime sender)
{
return javax.rmi.CORBA.Util.createValueHandler().readValue(in, offset,
clz, repositoryID, sender);
}
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
/**
* Returns the maximum stream format version supported by our ValueHandler.
*/
public static byte getMaxStreamFormatVersion()
{
ValueHandler vh = Util.createValueHandler();
if (!(vh instanceof javax.rmi.CORBA.ValueHandlerMultiFormat))
return ORBConstants.STREAM_FORMAT_VERSION_1;
else
return ((ValueHandlerMultiFormat) vh).getMaximumStreamFormatVersion();
}
代码示例来源:origin: org.apache.yoko/yoko-rmi-impl
/** standard method */
public String[] _ids() {
return new String[] { javax.rmi.CORBA.Util.createValueHandler()
.getRMIRepositoryID(type) };
}
代码示例来源:origin: org.jacorb/jacorb
public static String getRMIRepositoryID(Class clz)
{
return javax.rmi.CORBA.Util.createValueHandler()
.getRMIRepositoryID(clz);
}
代码示例来源:origin: org.jacorb/jacorb
public static org.omg.SendingContext.RunTime getRunTimeCodeBase()
{
return javax.rmi.CORBA.Util.createValueHandler().getRunTimeCodeBase();
}
代码示例来源:origin: org.jacorb/jacorb
public static boolean isCustomMarshaled(Class clz)
{
return javax.rmi.CORBA.Util.createValueHandler().isCustomMarshaled(clz);
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* Returns the maximum stream format version supported by our ValueHandler.
*/
public static byte getMaxStreamFormatVersion()
{
ValueHandler vh = Util.createValueHandler();
if (!(vh instanceof javax.rmi.CORBA.ValueHandlerMultiFormat))
return ORBConstants.STREAM_FORMAT_VERSION_1;
else
return ((ValueHandlerMultiFormat) vh).getMaximumStreamFormatVersion();
}
代码示例来源:origin: org.jacorb/jacorb
public static java.io.Serializable writeReplace(java.io.Serializable value)
{
return javax.rmi.CORBA.Util.createValueHandler().writeReplace(value);
}
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
/**
* Creates the correct ValueHandler for the given ORB, querying ORBVersion information. If the ORB or ORBVersion is
* null, gets the ValueHandler from Util.createValueHandler.
*/
public static ValueHandler createValueHandler(ORB orb)
{
if (orb == null)
return Util.createValueHandler();
ORBVersion version = orb.getORBVersion();
if (version == null)
return Util.createValueHandler();
if (version.equals(ORBVersionFactory.getOLD()))
return new ValueHandlerImpl_1_3();
if (version.equals(ORBVersionFactory.getNEW()))
return new ValueHandlerImpl_1_3_1();
return Util.createValueHandler();
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* Creates the correct ValueHandler for the given ORB, querying ORBVersion information. If the ORB or ORBVersion is
* null, gets the ValueHandler from Util.createValueHandler.
*/
public static ValueHandler createValueHandler(ORB orb)
{
if (orb == null)
return Util.createValueHandler();
ORBVersion version = orb.getORBVersion();
if (version == null)
return Util.createValueHandler();
if (version.equals(ORBVersionFactory.getOLD()))
return new ValueHandlerImpl_1_3();
if (version.equals(ORBVersionFactory.getNEW()))
return new ValueHandlerImpl_1_3_1();
return Util.createValueHandler();
}
代码示例来源:origin: org.apache.yoko/yoko-rmi-impl
public Object run() {
try {
javax.rmi.CORBA.ValueHandler handler = javax.rmi.CORBA.Util
.createValueHandler();
String repId = handler.getRMIRepositoryID(type);
repid_field.set(desc, repId);
String codebase = javax.rmi.CORBA.Util
.getCodebase(type);
codebase_field.set(desc, codebase);
return desc;
} catch (java.lang.IllegalAccessException ex) {
throw (org.omg.CORBA.MARSHAL)new org.omg.CORBA.MARSHAL(
"no such field: " + ex).initCause(ex);
}
}
});
代码示例来源:origin: org.jacorb/jacorb
public static byte getMaximumStreamFormatVersion (org.omg.CORBA.portable.OutputStream out)
{
javax.rmi.CORBA.ValueHandler vh = javax.rmi.CORBA.Util.createValueHandler();
byte streamFormatVersion = STREAM_FORMAT_VERSION_1;
// Maximum stream format version calculation rules:
// 1. Assume version 1 by default (GIOP v1.2).
// 2. If ValueHandler supports higher version take it as preliminary value.
// 3. If CDROutputStream returns version lower that ValueHandler supports
// then use maximum version that is supported by output stream.
if (vh instanceof ValueHandlerMultiFormat)
{
streamFormatVersion = ((ValueHandlerMultiFormat)vh).getMaximumStreamFormatVersion ();
}
if (out instanceof org.jacorb.orb.CDROutputStream
&& streamFormatVersion > ((org.jacorb.orb.CDROutputStream)out).getMaximumStreamFormatVersion ())
{
streamFormatVersion = ((org.jacorb.orb.CDROutputStream)out).getMaximumStreamFormatVersion ();
}
return streamFormatVersion;
}
}
代码示例来源:origin: org.jacorb/jacorb
public static void writeValue(org.omg.CORBA.portable.OutputStream out,
java.io.Serializable value)
{
byte version = ValueHandler.getMaximumStreamFormatVersion (out);
javax.rmi.CORBA.ValueHandler vh = javax.rmi.CORBA.Util.createValueHandler();
if (version == ValueHandler.STREAM_FORMAT_VERSION_1)
{
vh.writeValue (out, value);
}
else if (version == ValueHandler.STREAM_FORMAT_VERSION_2)
{
((ValueHandlerMultiFormat)vh).writeValue (out, value, ValueHandler.STREAM_FORMAT_VERSION_2);
}
else
{
throw new MARSHAL ("Unsupported stream format version.");
}
}
代码示例来源:origin: org.apache.yoko/yoko-core
valueHandler = javax.rmi.CORBA.Util.createValueHandler ();
代码示例来源:origin: org.apache.yoko/yoko-core
valueHandler = javax.rmi.CORBA.Util.createValueHandler ();
代码示例来源:origin: org.apache.yoko/yoko-core
javax.rmi.CORBA.ValueHandler valueHandler = javax.rmi.CORBA.Util.createValueHandler();
org.omg.SendingContext.CodeBase codeBase = (org.omg.SendingContext.CodeBase) valueHandler.getRunTimeCodeBase();
代码示例来源:origin: org.apache.yoko/yoko-core
javax.rmi.CORBA.ValueHandler valueHandler = javax.rmi.CORBA.Util.createValueHandler();
org.omg.SendingContext.CodeBase codeBase = (org.omg.SendingContext.CodeBase) valueHandler.getRunTimeCodeBase();
内容来源于网络,如有侵权,请联系作者删除!