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. package com.sun.corba.se.impl.ior ;
  8. import java.util.Iterator ;
  9. import org.omg.CORBA_2_3.portable.OutputStream ;
  10. /** ObjectAdapterIdNumber is used to represent pre-JDK 1.4 POA adapter
  11. * IDs. The POA ID was simply represented as a single integer, which was
  12. * mapped to the actual POA instance. Here, we just represent these
  13. * internally as arrays of the form { "OldRootPOA", "<number>" },
  14. * and provide an extra method to get the number back.
  15. */
  16. public class ObjectAdapterIdNumber extends ObjectAdapterIdArray {
  17. private int poaid ;
  18. public ObjectAdapterIdNumber( int poaid )
  19. {
  20. super( "OldRootPOA", Integer.toString( poaid ) ) ;
  21. this.poaid = poaid ;
  22. }
  23. public int getOldPOAId()
  24. {
  25. return poaid ;
  26. }
  27. }