1. /*
  2. * @(#)OldObjectKeyTemplateBase.java 1.7 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. // @(#)OldObjectKeyTemplateBase.java 1.4 00/10/11
  8. package com.sun.corba.se.internal.ior;
  9. import com.sun.corba.se.internal.ior.ObjectId ;
  10. import com.sun.corba.se.internal.ior.ObjectKeyFactory ;
  11. import org.omg.CORBA_2_3.portable.OutputStream ;
  12. import com.sun.corba.se.internal.core.ORBVersion ;
  13. import com.sun.corba.se.internal.core.ORBVersionImpl ;
  14. import org.omg.CORBA.ORB ;
  15. import org.omg.CORBA.INTERNAL ;
  16. /**
  17. * @author
  18. */
  19. public abstract class OldObjectKeyTemplateBase extends ObjectKeyTemplateBase
  20. {
  21. /**
  22. * @param scid
  23. * @param serverid
  24. * @return
  25. * @exception
  26. * @author
  27. * @roseuid 3915FF9803AA
  28. */
  29. public OldObjectKeyTemplateBase( int magic, int scid, int serverid )
  30. {
  31. super( magic, scid, serverid ) ;
  32. // set version based on magic
  33. if (magic == JAVAMAGIC_OLD)
  34. setORBVersion( ORBVersionImpl.OLD ) ;
  35. else if (magic == JAVAMAGIC_NEW)
  36. setORBVersion( ORBVersionImpl.NEW ) ;
  37. else // any other magic should not be here
  38. throw new INTERNAL() ;
  39. }
  40. }