org.omg.PortableServer.POAPackage.WrongAdapter.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(118)

本文整理了Java中org.omg.PortableServer.POAPackage.WrongAdapter.<init>()方法的一些代码示例,展示了WrongAdapter.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WrongAdapter.<init>()方法的具体详情如下:
包路径:org.omg.PortableServer.POAPackage.WrongAdapter
类名称:WrongAdapter
方法名:<init>

WrongAdapter.<init>介绍

暂无

代码示例

代码示例来源:origin: org.jacorb/jacorb

  1. protected static void checkNotLocal(org.omg.CORBA.Object obj)
  2. throws WrongAdapter
  3. {
  4. if (obj instanceof org.omg.CORBA.LocalObject)
  5. {
  6. throw new WrongAdapter ("Local object");
  7. }
  8. }

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

  1. public static org.omg.PortableServer.POAPackage.WrongAdapter read (org.omg.CORBA.portable.InputStream istream)
  2. {
  3. org.omg.PortableServer.POAPackage.WrongAdapter value = new org.omg.PortableServer.POAPackage.WrongAdapter ();
  4. // read and discard the repository ID
  5. istream.read_string ();
  6. return value;
  7. }

代码示例来源:origin: JacORB/JacORB

  1. public static org.omg.PortableServer.POAPackage.WrongAdapter read (final org.omg.CORBA.portable.InputStream in)
  2. {
  3. String id = in.read_string();
  4. if (!id.equals(id())) throw new org.omg.CORBA.MARSHAL("wrong id: " + id);
  5. final org.omg.PortableServer.POAPackage.WrongAdapter result = new org.omg.PortableServer.POAPackage.WrongAdapter(id);
  6. return result;
  7. }
  8. public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.PortableServer.POAPackage.WrongAdapter s)

代码示例来源:origin: org.jacorb/jacorb-omgapi

  1. public static org.omg.PortableServer.POAPackage.WrongAdapter read (final org.omg.CORBA.portable.InputStream in)
  2. {
  3. String id = in.read_string();
  4. if (!id.equals(id())) throw new org.omg.CORBA.MARSHAL("wrong id: " + id);
  5. final org.omg.PortableServer.POAPackage.WrongAdapter result = new org.omg.PortableServer.POAPackage.WrongAdapter(id);
  6. return result;
  7. }
  8. 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

  1. public static WrongAdapter
  2. read(org.omg.CORBA.portable.InputStream in)
  3. {
  4. if(!id().equals(in.read_string()))
  5. throw new org.omg.CORBA.MARSHAL();
  6. WrongAdapter _ob_v = new WrongAdapter();
  7. return _ob_v;
  8. }

代码示例来源:origin: org.jacorb/jacorb

  1. );
  2. throw new WrongAdapter();
  3. "reference_to_id: oid not previously generated!");
  4. throw new WrongAdapter();
  5. "reference_to_id: reference not previously generated for this POA!");
  6. throw new WrongAdapter();

代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec

  1. private byte[] internalReferenceToId(org.omg.CORBA.Object reference) throws WrongAdapter
  2. {
  3. IOR ior = ORBUtility.getIOR(reference);
  4. IORTemplateList thisTemplate = ior.getIORTemplates();
  5. ObjectReferenceFactory orf = getCurrentFactory();
  6. IORTemplateList poaTemplate = IORFactories.getIORTemplateList(orf);
  7. if (!poaTemplate.isEquivalent(thisTemplate))
  8. throw new WrongAdapter();
  9. // Extract the ObjectId from the first TaggedProfile in the IOR. If ior was created in this POA, the same ID was
  10. // used for every profile through the profile templates in the currentFactory, so we will get the same result
  11. // from any profile.
  12. Iterator<Object> iter = ior.iterator();
  13. if (!iter.hasNext())
  14. throw iorWrapper().noProfilesInIor();
  15. TaggedProfile prof = (TaggedProfile) (iter.next());
  16. ObjectId oid = prof.getObjectId();
  17. return oid.getId();
  18. }

代码示例来源:origin: jboss/jboss-javaee-specs

  1. private byte[] internalReferenceToId(org.omg.CORBA.Object reference) throws WrongAdapter
  2. {
  3. IOR ior = ORBUtility.getIOR(reference);
  4. IORTemplateList thisTemplate = ior.getIORTemplates();
  5. ObjectReferenceFactory orf = getCurrentFactory();
  6. IORTemplateList poaTemplate = IORFactories.getIORTemplateList(orf);
  7. if (!poaTemplate.isEquivalent(thisTemplate))
  8. throw new WrongAdapter();
  9. // Extract the ObjectId from the first TaggedProfile in the IOR. If ior was created in this POA, the same ID was
  10. // used for every profile through the profile templates in the currentFactory, so we will get the same result
  11. // from any profile.
  12. Iterator<Object> iter = ior.iterator();
  13. if (!iter.hasNext())
  14. throw iorWrapper().noProfilesInIor();
  15. TaggedProfile prof = (TaggedProfile) (iter.next());
  16. ObjectId oid = prof.getObjectId();
  17. return oid.getId();
  18. }

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

  1. private byte[] internalReferenceToId(
  2. org.omg.CORBA.Object reference ) throws WrongAdapter
  3. {
  4. IOR ior = ORBUtility.getIOR( reference ) ;
  5. IORTemplateList thisTemplate = ior.getIORTemplates() ;
  6. ObjectReferenceFactory orf = getCurrentFactory() ;
  7. IORTemplateList poaTemplate =
  8. IORFactories.getIORTemplateList( orf ) ;
  9. if (!poaTemplate.isEquivalent( thisTemplate ))
  10. throw new WrongAdapter();
  11. // Extract the ObjectId from the first TaggedProfile in the IOR.
  12. // If ior was created in this POA, the same ID was used for
  13. // every profile through the profile templates in the currentFactory,
  14. // so we will get the same result from any profile.
  15. Iterator iter = ior.iterator() ;
  16. if (!iter.hasNext())
  17. throw iorWrapper().noProfilesInIor() ;
  18. TaggedProfile prof = (TaggedProfile)(iter.next()) ;
  19. ObjectId oid = prof.getObjectId() ;
  20. return oid.getId();
  21. }

代码示例来源:origin: org.jacorb/jacorb

  1. throw new WrongAdapter();

代码示例来源:origin: org.jacorb/jacorb

  1. );
  2. throw new WrongAdapter();
  3. "reference_to_servant: oid not previously generated!");
  4. throw new WrongAdapter();
  5. "reference_to_id: reference not previously generated for this POA!");
  6. throw new WrongAdapter();

代码示例来源:origin: org.jacorb/jacorb

  1. );
  2. throw new org.omg.PortableServer.POAPackage.WrongAdapter();

代码示例来源:origin: org.apache.yoko/yoko-core

  1. throw new org.omg.PortableServer.POAPackage.WrongAdapter();

相关文章

WrongAdapter类方法