1 7 8 package com.sun.corba.se.impl.ior ; 9 10 import com.sun.corba.se.spi.orb.ORB ; 11 12 import com.sun.corba.se.spi.ior.IORFactory ; 13 import com.sun.corba.se.spi.ior.IOR ; 14 import com.sun.corba.se.spi.ior.IORFactories ; 15 import com.sun.corba.se.spi.ior.IORTemplateList ; 16 import com.sun.corba.se.spi.ior.ObjectId ; 17 18 import com.sun.corba.se.spi.logging.CORBALogDomains ; 19 20 import com.sun.corba.se.impl.orbutil.ORBUtility ; 21 22 import com.sun.corba.se.impl.logging.IORSystemException ; 23 24 public abstract class ObjectReferenceProducerBase { 25 transient protected ORB orb ; 26 27 public abstract IORFactory getIORFactory() ; 28 29 public abstract IORTemplateList getIORTemplateList() ; 30 31 public ObjectReferenceProducerBase( ORB orb ) 32 { 33 this.orb = orb ; 34 } 35 36 public org.omg.CORBA.Object make_object (String repositoryId, 37 byte[] objectId) 38 { 39 ObjectId oid = IORFactories.makeObjectId( objectId ) ; 40 IOR ior = getIORFactory().makeIOR( orb, repositoryId, oid ) ; 41 42 return ORBUtility.makeObjectReference( ior ) ; 43 } 44 } 45 46 | Popular Tags |