1. package com.sun.corba.se.spi.activation;
  2. /**
  3. * com/sun/corba/se/spi/activation/ORBAlreadyRegisteredHelper.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.2"
  5. * from ../../../../src/share/classes/com/sun/corba/se/spi/activation/activation.idl
  6. * Wednesday, September 15, 2004 3:50:42 AM PDT
  7. */
  8. abstract public class ORBAlreadyRegisteredHelper
  9. {
  10. private static String _id = "IDL:activation/ORBAlreadyRegistered:1.0";
  11. public static void insert (org.omg.CORBA.Any a, com.sun.corba.se.spi.activation.ORBAlreadyRegistered that)
  12. {
  13. org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
  14. a.type (type ());
  15. write (out, that);
  16. a.read_value (out.create_input_stream (), type ());
  17. }
  18. public static com.sun.corba.se.spi.activation.ORBAlreadyRegistered extract (org.omg.CORBA.Any a)
  19. {
  20. return read (a.create_input_stream ());
  21. }
  22. private static org.omg.CORBA.TypeCode __typeCode = null;
  23. private static boolean __active = false;
  24. synchronized public static org.omg.CORBA.TypeCode type ()
  25. {
  26. if (__typeCode == null)
  27. {
  28. synchronized (org.omg.CORBA.TypeCode.class)
  29. {
  30. if (__typeCode == null)
  31. {
  32. if (__active)
  33. {
  34. return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
  35. }
  36. __active = true;
  37. org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [1];
  38. org.omg.CORBA.TypeCode _tcOf_members0 = null;
  39. _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
  40. _tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (com.sun.corba.se.spi.activation.ORBidHelper.id (), "ORBid", _tcOf_members0);
  41. _members0[0] = new org.omg.CORBA.StructMember (
  42. "orbId",
  43. _tcOf_members0,
  44. null);
  45. __typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (com.sun.corba.se.spi.activation.ORBAlreadyRegisteredHelper.id (), "ORBAlreadyRegistered", _members0);
  46. __active = false;
  47. }
  48. }
  49. }
  50. return __typeCode;
  51. }
  52. public static String id ()
  53. {
  54. return _id;
  55. }
  56. public static com.sun.corba.se.spi.activation.ORBAlreadyRegistered read (org.omg.CORBA.portable.InputStream istream)
  57. {
  58. com.sun.corba.se.spi.activation.ORBAlreadyRegistered value = new com.sun.corba.se.spi.activation.ORBAlreadyRegistered ();
  59. // read and discard the repository ID
  60. istream.read_string ();
  61. value.orbId = istream.read_string ();
  62. return value;
  63. }
  64. public static void write (org.omg.CORBA.portable.OutputStream ostream, com.sun.corba.se.spi.activation.ORBAlreadyRegistered value)
  65. {
  66. // write the repository ID
  67. ostream.write_string (id ());
  68. ostream.write_string (value.orbId);
  69. }
  70. }