KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)PortableRemoteObjectDelegate.java 1.12 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.RemoteException JavaDoc;
19 import java.rmi.NoSuchObjectException JavaDoc;
20 import java.rmi.Remote JavaDoc;
21
22 /**
23  * Supports delegation for method implementations in {@link javax.rmi.PortableRemoteObject}.
24  * The delegate is a singleton instance of a class that implements this
25  * interface and provides a replacement implementation for all the
26  * methods of <code>javax.rmi.PortableRemoteObject</code>.
27  *
28  * Delegates are enabled by providing the delegate's class name as the
29  * value of the
30  * <code>javax.rmi.CORBA.PortableRemoteObjectClass</code>
31  * system property.
32  *
33  * @see javax.rmi.PortableRemoteObject
34  */

35 public interface PortableRemoteObjectDelegate {
36
37     /**
38      * Delegation call for {@link javax.rmi.PortableRemoteObject#exportObject}.
39      */

40     void exportObject(Remote JavaDoc obj)
41     throws RemoteException JavaDoc;
42
43     /**
44      * Delegation call for {@link javax.rmi.PortableRemoteObject#toStub}.
45      */

46     Remote JavaDoc toStub (Remote JavaDoc obj)
47     throws NoSuchObjectException JavaDoc;
48
49     /**
50      * Delegation call for {@link javax.rmi.PortableRemoteObject#unexportObject}.
51      */

52     void unexportObject(Remote JavaDoc obj)
53     throws NoSuchObjectException JavaDoc;
54
55     /**
56      * Delegation call for {@link javax.rmi.PortableRemoteObject#narrow}.
57      */

58     java.lang.Object JavaDoc narrow (java.lang.Object JavaDoc narrowFrom,
59                     java.lang.Class JavaDoc narrowTo)
60     throws ClassCastException JavaDoc;
61
62     /**
63      * Delegation call for {@link javax.rmi.PortableRemoteObject#connect}.
64      */

65     void connect (Remote JavaDoc target, Remote JavaDoc source)
66     throws RemoteException JavaDoc;
67
68 }
69
Popular Tags