1 package org.omg.PortableInterceptor; 2 3 4 10 11 12 15 abstract public class ObjectReferenceFactoryHelper 16 { 17 private static String _id = "IDL:omg.org/PortableInterceptor/ObjectReferenceFactory:1.0"; 18 19 20 public static void insert (org.omg.CORBA.Any a, org.omg.PortableInterceptor.ObjectReferenceFactory that) 21 { 22 org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); 23 a.type (type ()); 24 write (out, that); 25 a.read_value (out.create_input_stream (), type ()); 26 } 27 28 public static org.omg.PortableInterceptor.ObjectReferenceFactory extract (org.omg.CORBA.Any a) 29 { 30 return read (a.create_input_stream ()); 31 } 32 33 private static org.omg.CORBA.TypeCode __typeCode = null; 34 private static boolean __active = false; 35 synchronized public static org.omg.CORBA.TypeCode type () 36 { 37 if (__typeCode == null) 38 { 39 synchronized (org.omg.CORBA.TypeCode .class) 40 { 41 if (__typeCode == null) 42 { 43 if (__active) 44 { 45 return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); 46 } 47 __active = true; 48 org.omg.CORBA.ValueMember [] _members0 = new org.omg.CORBA.ValueMember [0]; 49 org.omg.CORBA.TypeCode _tcOf_members0 = null; 50 __typeCode = org.omg.CORBA.ORB.init ().create_value_tc (_id, "ObjectReferenceFactory", org.omg.CORBA.VM_ABSTRACT.value, null, _members0); 51 __active = false; 52 } 53 } 54 } 55 return __typeCode; 56 } 57 58 public static String id () 59 { 60 return _id; 61 } 62 63 public static org.omg.PortableInterceptor.ObjectReferenceFactory read (org.omg.CORBA.portable.InputStream istream) 64 { 65 return (org.omg.PortableInterceptor.ObjectReferenceFactory )((org.omg.CORBA_2_3.portable.InputStream ) istream).read_value (id ()); 66 } 67 68 public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableInterceptor.ObjectReferenceFactory value) 69 { 70 ((org.omg.CORBA_2_3.portable.OutputStream ) ostream).write_value (value, id ()); 71 } 72 73 74 } 75 | Popular Tags |