本文整理了Java中org.omg.PortableServer.POAPackage.WrongAdapter.<init>()
方法的一些代码示例,展示了WrongAdapter.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WrongAdapter.<init>()
方法的具体详情如下:
包路径:org.omg.PortableServer.POAPackage.WrongAdapter
类名称:WrongAdapter
方法名:<init>
暂无
代码示例来源:origin: org.jacorb/jacorb
protected static void checkNotLocal(org.omg.CORBA.Object obj)
throws WrongAdapter
{
if (obj instanceof org.omg.CORBA.LocalObject)
{
throw new WrongAdapter ("Local object");
}
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public static org.omg.PortableServer.POAPackage.WrongAdapter read (org.omg.CORBA.portable.InputStream istream)
{
org.omg.PortableServer.POAPackage.WrongAdapter value = new org.omg.PortableServer.POAPackage.WrongAdapter ();
// read and discard the repository ID
istream.read_string ();
return value;
}
代码示例来源:origin: JacORB/JacORB
public static org.omg.PortableServer.POAPackage.WrongAdapter read (final org.omg.CORBA.portable.InputStream in)
{
String id = in.read_string();
if (!id.equals(id())) throw new org.omg.CORBA.MARSHAL("wrong id: " + id);
final org.omg.PortableServer.POAPackage.WrongAdapter result = new org.omg.PortableServer.POAPackage.WrongAdapter(id);
return result;
}
public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.PortableServer.POAPackage.WrongAdapter s)
代码示例来源:origin: org.jacorb/jacorb-omgapi
public static org.omg.PortableServer.POAPackage.WrongAdapter read (final org.omg.CORBA.portable.InputStream in)
{
String id = in.read_string();
if (!id.equals(id())) throw new org.omg.CORBA.MARSHAL("wrong id: " + id);
final org.omg.PortableServer.POAPackage.WrongAdapter result = new org.omg.PortableServer.POAPackage.WrongAdapter(id);
return result;
}
public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.PortableServer.POAPackage.WrongAdapter s)
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static WrongAdapter
read(org.omg.CORBA.portable.InputStream in)
{
if(!id().equals(in.read_string()))
throw new org.omg.CORBA.MARSHAL();
WrongAdapter _ob_v = new WrongAdapter();
return _ob_v;
}
代码示例来源:origin: org.jacorb/jacorb
);
throw new WrongAdapter();
"reference_to_id: oid not previously generated!");
throw new WrongAdapter();
"reference_to_id: reference not previously generated for this POA!");
throw new WrongAdapter();
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
private byte[] internalReferenceToId(org.omg.CORBA.Object reference) throws WrongAdapter
{
IOR ior = ORBUtility.getIOR(reference);
IORTemplateList thisTemplate = ior.getIORTemplates();
ObjectReferenceFactory orf = getCurrentFactory();
IORTemplateList poaTemplate = IORFactories.getIORTemplateList(orf);
if (!poaTemplate.isEquivalent(thisTemplate))
throw new WrongAdapter();
// Extract the ObjectId from the first TaggedProfile in the IOR. If ior was created in this POA, the same ID was
// used for every profile through the profile templates in the currentFactory, so we will get the same result
// from any profile.
Iterator<Object> iter = ior.iterator();
if (!iter.hasNext())
throw iorWrapper().noProfilesInIor();
TaggedProfile prof = (TaggedProfile) (iter.next());
ObjectId oid = prof.getObjectId();
return oid.getId();
}
代码示例来源:origin: jboss/jboss-javaee-specs
private byte[] internalReferenceToId(org.omg.CORBA.Object reference) throws WrongAdapter
{
IOR ior = ORBUtility.getIOR(reference);
IORTemplateList thisTemplate = ior.getIORTemplates();
ObjectReferenceFactory orf = getCurrentFactory();
IORTemplateList poaTemplate = IORFactories.getIORTemplateList(orf);
if (!poaTemplate.isEquivalent(thisTemplate))
throw new WrongAdapter();
// Extract the ObjectId from the first TaggedProfile in the IOR. If ior was created in this POA, the same ID was
// used for every profile through the profile templates in the currentFactory, so we will get the same result
// from any profile.
Iterator<Object> iter = ior.iterator();
if (!iter.hasNext())
throw iorWrapper().noProfilesInIor();
TaggedProfile prof = (TaggedProfile) (iter.next());
ObjectId oid = prof.getObjectId();
return oid.getId();
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
private byte[] internalReferenceToId(
org.omg.CORBA.Object reference ) throws WrongAdapter
{
IOR ior = ORBUtility.getIOR( reference ) ;
IORTemplateList thisTemplate = ior.getIORTemplates() ;
ObjectReferenceFactory orf = getCurrentFactory() ;
IORTemplateList poaTemplate =
IORFactories.getIORTemplateList( orf ) ;
if (!poaTemplate.isEquivalent( thisTemplate ))
throw new WrongAdapter();
// Extract the ObjectId from the first TaggedProfile in the IOR.
// If ior was created in this POA, the same ID was used for
// every profile through the profile templates in the currentFactory,
// so we will get the same result from any profile.
Iterator iter = ior.iterator() ;
if (!iter.hasNext())
throw iorWrapper().noProfilesInIor() ;
TaggedProfile prof = (TaggedProfile)(iter.next()) ;
ObjectId oid = prof.getObjectId() ;
return oid.getId();
}
代码示例来源:origin: org.jacorb/jacorb
throw new WrongAdapter();
代码示例来源:origin: org.jacorb/jacorb
);
throw new WrongAdapter();
"reference_to_servant: oid not previously generated!");
throw new WrongAdapter();
"reference_to_id: reference not previously generated for this POA!");
throw new WrongAdapter();
代码示例来源:origin: org.jacorb/jacorb
);
throw new org.omg.PortableServer.POAPackage.WrongAdapter();
代码示例来源:origin: org.apache.yoko/yoko-core
throw new org.omg.PortableServer.POAPackage.WrongAdapter();
内容来源于网络,如有侵权,请联系作者删除!