1. package org.omg.PortableInterceptor;
  2. /**
  3. * org/omg/PortableInterceptor/ObjectReferenceFactoryHelper.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.2"
  5. * from ../../../../src/share/classes/org/omg/PortableInterceptor/Interceptors.idl
  6. * Wednesday, September 15, 2004 10:28:46 AM GMT
  7. */
  8. /** The object reference factory. This provides the capability of
  9. * creating an object reference.
  10. */
  11. abstract public class ObjectReferenceFactoryHelper
  12. {
  13. private static String _id = "IDL:omg.org/PortableInterceptor/ObjectReferenceFactory:1.0";
  14. public static void insert (org.omg.CORBA.Any a, org.omg.PortableInterceptor.ObjectReferenceFactory that)
  15. {
  16. org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
  17. a.type (type ());
  18. write (out, that);
  19. a.read_value (out.create_input_stream (), type ());
  20. }
  21. public static org.omg.PortableInterceptor.ObjectReferenceFactory extract (org.omg.CORBA.Any a)
  22. {
  23. return read (a.create_input_stream ());
  24. }
  25. private static org.omg.CORBA.TypeCode __typeCode = null;
  26. private static boolean __active = false;
  27. synchronized public static org.omg.CORBA.TypeCode type ()
  28. {
  29. if (__typeCode == null)
  30. {
  31. synchronized (org.omg.CORBA.TypeCode.class)
  32. {
  33. if (__typeCode == null)
  34. {
  35. if (__active)
  36. {
  37. return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
  38. }
  39. __active = true;
  40. org.omg.CORBA.ValueMember[] _members0 = new org.omg.CORBA.ValueMember[0];
  41. org.omg.CORBA.TypeCode _tcOf_members0 = null;
  42. __typeCode = org.omg.CORBA.ORB.init ().create_value_tc (_id, "ObjectReferenceFactory", org.omg.CORBA.VM_ABSTRACT.value, null, _members0);
  43. __active = false;
  44. }
  45. }
  46. }
  47. return __typeCode;
  48. }
  49. public static String id ()
  50. {
  51. return _id;
  52. }
  53. public static org.omg.PortableInterceptor.ObjectReferenceFactory read (org.omg.CORBA.portable.InputStream istream)
  54. {
  55. return (org.omg.PortableInterceptor.ObjectReferenceFactory)((org.omg.CORBA_2_3.portable.InputStream) istream).read_value (id ());
  56. }
  57. public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableInterceptor.ObjectReferenceFactory value)
  58. {
  59. ((org.omg.CORBA_2_3.portable.OutputStream) ostream).write_value (value, id ());
  60. }
  61. }