1. /*
  2. * @(#)Tie.java 1.19 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. /*
  8. * Licensed Materials - Property of IBM
  9. * RMI-IIOP v1.0
  10. * Copyright IBM Corp. 1998 1999 All Rights Reserved
  11. *
  12. * US Government Users Restricted Rights - Use, duplication or
  13. * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  14. */
  15. package javax.rmi.CORBA;
  16. import java.rmi.Remote;
  17. import java.util.Hashtable;
  18. import org.omg.CORBA.portable.ApplicationException;
  19. import org.omg.CORBA.portable.InputStream;
  20. import org.omg.CORBA.portable.OutputStream;
  21. import org.omg.CORBA.portable.ObjectImpl;
  22. import org.omg.CORBA.portable.ResponseHandler;
  23. import org.omg.CORBA.portable.Delegate;
  24. import org.omg.CORBA.ORB;
  25. /**
  26. * Defines methods which all RMI-IIOP server side ties must implement.
  27. */
  28. public interface Tie extends org.omg.CORBA.portable.InvokeHandler {
  29. /**
  30. * Returns an object reference for the target object represented by
  31. * this tie.
  32. * @return an object reference for the target object.
  33. */
  34. org.omg.CORBA.Object thisObject();
  35. /**
  36. * Deactivates the target object represented by this tie.
  37. */
  38. void deactivate() throws java.rmi.NoSuchObjectException;
  39. /**
  40. * Returns the ORB for this tie.
  41. * @return the ORB.
  42. */
  43. ORB orb();
  44. /**
  45. * Sets the ORB for this tie.
  46. * @param orb the ORB.
  47. */
  48. void orb(ORB orb);
  49. /**
  50. * Called by {@link Util#registerTarget} to set the target
  51. * for this tie.
  52. * @param target the object to use as the target for this tie.
  53. */
  54. void setTarget(java.rmi.Remote target);
  55. /**
  56. * Returns the target for this tie.
  57. * @return the target.
  58. */
  59. java.rmi.Remote getTarget();
  60. }