1 7 8 package com.sun.corba.se.impl.dynamicany; 9 10 import org.omg.CORBA.Any ; 11 import org.omg.CORBA.LocalObject ; 12 import org.omg.CORBA.TypeCode ; 13 import org.omg.CORBA.TCKind ; 14 15 import org.omg.DynamicAny.*; 16 import org.omg.DynamicAny.DynAnyFactoryPackage.*; 17 18 import com.sun.corba.se.spi.orb.ORB ; 19 import com.sun.corba.se.spi.logging.CORBALogDomains ; 20 import com.sun.corba.se.impl.logging.ORBUtilSystemException ; 21 22 public class DynAnyFactoryImpl 23 extends org.omg.CORBA.LocalObject 24 implements org.omg.DynamicAny.DynAnyFactory 25 { 26 30 private ORB orb; 31 32 36 private DynAnyFactoryImpl() { 37 this.orb = null; 38 } 39 40 public DynAnyFactoryImpl(ORB orb) { 41 this.orb = orb; 42 } 43 44 48 public org.omg.DynamicAny.DynAny create_dyn_any (org.omg.CORBA.Any any) 50 throws org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode 51 { 52 return DynAnyUtil.createMostDerivedDynAny(any, orb, true); 53 } 54 55 public org.omg.DynamicAny.DynAny create_dyn_any_from_type_code (org.omg.CORBA.TypeCode type) 57 throws org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode 58 { 59 return DynAnyUtil.createMostDerivedDynAny(type, orb); 60 } 61 62 64 private String [] __ids = { "IDL:omg.org/DynamicAny/DynAnyFactory:1.0" }; 65 66 public String [] _ids() { 67 return __ids; 68 } 69 } 70 | Popular Tags |