KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > spi > ior > ObjectKeyTemplate


1 /*
2  * @(#)ObjectKeyTemplate.java 1.12 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.spi.ior;
9
10 import org.omg.CORBA_2_3.portable.OutputStream JavaDoc ;
11
12 import com.sun.corba.se.spi.orb.ORBVersion ;
13 import com.sun.corba.se.spi.orb.ORB ;
14
15 import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher ;
16
17 /** An ObjectKeyTemplate represents the part of an Object Key
18  * that corresponds to the object adapter used to create an
19  * object reference. The template is shared between many
20  * object references.
21  */

22 public interface ObjectKeyTemplate extends Writeable
23 {
24     public ORBVersion getORBVersion() ;
25
26     /** An ID used to determine how to perform operations on this
27      * ObjectKeyTemplate. This id determines how to process requests
28      * on this object reference, and what object adapter type to use.
29      */

30     public int getSubcontractId();
31
32     /** Return the server ID for this template.
33     * For CORBA 3.0, this should be a String, but it is currently
34     * an int in the object key template.
35     */

36     public int getServerId() ;
37
38     /** Return the ORB ID for this template.
39     */

40     public String JavaDoc getORBId() ;
41
42     /** Return the object adapter ID for this template.
43     */

44     public ObjectAdapterId getObjectAdapterId() ;
45
46     /** Compute an adapter ID for this template than includes
47     * all of the template information.
48     * This value is cached to avoid the expense of recomputing
49     * it.
50     */

51     public byte[] getAdapterId() ;
52
53     public void write(ObjectId objectId, OutputStream JavaDoc os);
54     
55     public CorbaServerRequestDispatcher getServerRequestDispatcher( ORB orb, ObjectId id ) ;
56 }
57
Popular Tags