1 /* 2 * @(#)Tie.java 1.20 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 * 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 16 package javax.rmi.CORBA; 17 18 import java.rmi.Remote; 19 import java.util.Hashtable; 20 21 import org.omg.CORBA.portable.ApplicationException; 22 import org.omg.CORBA.portable.InputStream; 23 import org.omg.CORBA.portable.OutputStream; 24 import org.omg.CORBA.portable.ObjectImpl; 25 import org.omg.CORBA.portable.ResponseHandler; 26 import org.omg.CORBA.portable.Delegate; 27 import org.omg.CORBA.ORB; 28 29 /** 30 * Defines methods which all RMI-IIOP server side ties must implement. 31 */ 32 public interface Tie extends org.omg.CORBA.portable.InvokeHandler { 33 /** 34 * Returns an object reference for the target object represented by 35 * this tie. 36 * @return an object reference for the target object. 37 */ 38 org.omg.CORBA.Object thisObject(); 39 40 /** 41 * Deactivates the target object represented by this tie. 42 */ 43 void deactivate() throws java.rmi.NoSuchObjectException; 44 45 /** 46 * Returns the ORB for this tie. 47 * @return the ORB. 48 */ 49 ORB orb(); 50 51 /** 52 * Sets the ORB for this tie. 53 * @param orb the ORB. 54 */ 55 void orb(ORB orb); 56 57 /** 58 * Called by {@link Util#registerTarget} to set the target 59 * for this tie. 60 * @param target the object to use as the target for this tie. 61 */ 62 void setTarget(java.rmi.Remote target); 63 64 /** 65 * Returns the target for this tie. 66 * @return the target. 67 */ 68 java.rmi.Remote getTarget(); 69 } 70