KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > ior > ObjectReferenceProducerBase


1 /*
2  * @(#)ObjectReferenceProducerBase.java 1.10 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

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 JavaDoc make_object (String JavaDoc 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