KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > rmi > CORBA > Tie


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 JavaDoc;
19 import java.util.Hashtable JavaDoc;
20
21 import org.omg.CORBA.portable.ApplicationException JavaDoc;
22 import org.omg.CORBA.portable.InputStream JavaDoc;
23 import org.omg.CORBA.portable.OutputStream JavaDoc;
24 import org.omg.CORBA.portable.ObjectImpl JavaDoc;
25 import org.omg.CORBA.portable.ResponseHandler JavaDoc;
26 import org.omg.CORBA.portable.Delegate JavaDoc;
27 import org.omg.CORBA.ORB JavaDoc;
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 JavaDoc {
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 JavaDoc thisObject();
39     
40     /**
41      * Deactivates the target object represented by this tie.
42      */

43     void deactivate() throws java.rmi.NoSuchObjectException JavaDoc;
44     
45     /**
46      * Returns the ORB for this tie.
47      * @return the ORB.
48      */

49     ORB JavaDoc orb();
50     
51     /**
52      * Sets the ORB for this tie.
53      * @param orb the ORB.
54      */

55     void orb(ORB JavaDoc 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 JavaDoc target);
63    
64     /**
65      * Returns the target for this tie.
66      * @return the target.
67      */

68     java.rmi.Remote JavaDoc getTarget();
69 }
70
Popular Tags