1. /*
  2. * @(#)INSObjectKeyEntry.java 1.4 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. package com.sun.corba.se.internal.core;
  8. import java.util.Hashtable;
  9. /**
  10. * This class contains two elements
  11. * 1. INS target object's IOR
  12. * 2. INS target object's Subcontract.
  13. * This is used in Subcontract registry to get the handle of subcontract for
  14. * a give INS object Key and in ServerSubcontract to get the target object's
  15. * ior, which will be returned when INS locate message is sent from the client
  16. * with the given ObjectKey.
  17. */
  18. public class INSObjectKeyEntry {
  19. private IOR ior;
  20. private ServerSubcontract sc;
  21. public INSObjectKeyEntry ( IOR aIOR, ServerSubcontract aSC ) {
  22. ior = aIOR;
  23. sc = aSC;
  24. }
  25. public IOR getIOR( ) {
  26. return ior;
  27. }
  28. public ServerSubcontract getServerSubcontract( ) {
  29. return sc;
  30. }
  31. }