KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)ObjectAdapterIdNumber.java 1.7 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 java.util.Iterator JavaDoc ;
11 import org.omg.CORBA_2_3.portable.OutputStream JavaDoc ;
12
13 /** ObjectAdapterIdNumber is used to represent pre-JDK 1.4 POA adapter
14  * IDs. The POA ID was simply represented as a single integer, which was
15  * mapped to the actual POA instance. Here, we just represent these
16  * internally as arrays of the form { "OldRootPOA", "<number>" },
17  * and provide an extra method to get the number back.
18  */

19 public class ObjectAdapterIdNumber extends ObjectAdapterIdArray {
20     private int poaid ;
21
22     public ObjectAdapterIdNumber( int poaid )
23     {
24     super( "OldRootPOA", Integer.toString( poaid ) ) ;
25     this.poaid = poaid ;
26     }
27
28     public int getOldPOAId()
29     {
30     return poaid ;
31     }
32 }
33
Popular Tags