01 /*
02 * Copyright 1998-2001 Sun Microsystems, Inc. All Rights Reserved.
03 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
04 *
05 * This code is free software; you can redistribute it and/or modify it
06 * under the terms of the GNU General Public License version 2 only, as
07 * published by the Free Software Foundation. Sun designates this
08 * particular file as subject to the "Classpath" exception as provided
09 * by Sun in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22 * CA 95054 USA or visit www.sun.com if you need additional information or
23 * have any questions.
24 */
25 /*
26 * Licensed Materials - Property of IBM
27 * RMI-IIOP v1.0
28 * Copyright IBM Corp. 1998 1999 All Rights Reserved
29 *
30 */
31
32 package javax.rmi.CORBA;
33
34 import java.rmi.Remote;
35 import java.util.Hashtable;
36
37 import org.omg.CORBA.portable.ApplicationException;
38 import org.omg.CORBA.portable.InputStream;
39 import org.omg.CORBA.portable.OutputStream;
40 import org.omg.CORBA.portable.ObjectImpl;
41 import org.omg.CORBA.portable.ResponseHandler;
42 import org.omg.CORBA.portable.Delegate;
43 import org.omg.CORBA.ORB;
44
45 /**
46 * Defines methods which all RMI-IIOP server side ties must implement.
47 */
48 public interface Tie extends org.omg.CORBA.portable.InvokeHandler {
49 /**
50 * Returns an object reference for the target object represented by
51 * this tie.
52 * @return an object reference for the target object.
53 */
54 org.omg.CORBA.Object this Object();
55
56 /**
57 * Deactivates the target object represented by this tie.
58 */
59 void deactivate() throws java.rmi.NoSuchObjectException;
60
61 /**
62 * Returns the ORB for this tie.
63 * @return the ORB.
64 */
65 ORB orb();
66
67 /**
68 * Sets the ORB for this tie.
69 * @param orb the ORB.
70 */
71 void orb(ORB orb);
72
73 /**
74 * Called by {@link Util#registerTarget} to set the target
75 * for this tie.
76 * @param target the object to use as the target for this tie.
77 */
78 void setTarget(java.rmi.Remote target);
79
80 /**
81 * Returns the target for this tie.
82 * @return the target.
83 */
84 java.rmi.Remote getTarget();
85 }
|