30 */
31
32 package javax.rmi.CORBA;
33
34 import java.rmi.RemoteException;
35 import java.rmi.NoSuchObjectException;
36 import java.rmi.Remote;
37
38 /**
39 * Supports delegation for method implementations in {@link javax.rmi.PortableRemoteObject}.
40 * The delegate is a singleton instance of a class that implements this
41 * interface and provides a replacement implementation for all the
42 * methods of <code>javax.rmi.PortableRemoteObject</code>.
43 *
44 * Delegates are enabled by providing the delegate's class name as the
45 * value of the
46 * <code>javax.rmi.CORBA.PortableRemoteObjectClass</code>
47 * system property.
48 *
49 * @see javax.rmi.PortableRemoteObject
50 */
51 public interface PortableRemoteObjectDelegate {
52
53 /**
54 * Delegation call for {@link javax.rmi.PortableRemoteObject#exportObject}.
55 */
56 void exportObject(Remote obj)
57 throws RemoteException;
58
59 /**
60 * Delegation call for {@link javax.rmi.PortableRemoteObject#toStub}.
61 */
62 Remote toStub (Remote obj)
63 throws NoSuchObjectException;
64
65 /**
66 * Delegation call for {@link javax.rmi.PortableRemoteObject#unexportObject}.
67 */
68 void unexportObject(Remote obj)
69 throws NoSuchObjectException;
|
30 */
31
32 package javax.rmi.CORBA;
33
34 import java.rmi.RemoteException;
35 import java.rmi.NoSuchObjectException;
36 import java.rmi.Remote;
37
38 /**
39 * Supports delegation for method implementations in {@link javax.rmi.PortableRemoteObject}.
40 * The delegate is a singleton instance of a class that implements this
41 * interface and provides a replacement implementation for all the
42 * methods of <code>javax.rmi.PortableRemoteObject</code>.
43 *
44 * Delegates are enabled by providing the delegate's class name as the
45 * value of the
46 * <code>javax.rmi.CORBA.PortableRemoteObjectClass</code>
47 * system property.
48 *
49 * @see javax.rmi.PortableRemoteObject
50 * @since 1.3
51 */
52 public interface PortableRemoteObjectDelegate {
53
54 /**
55 * Delegation call for {@link javax.rmi.PortableRemoteObject#exportObject}.
56 */
57 void exportObject(Remote obj)
58 throws RemoteException;
59
60 /**
61 * Delegation call for {@link javax.rmi.PortableRemoteObject#toStub}.
62 */
63 Remote toStub (Remote obj)
64 throws NoSuchObjectException;
65
66 /**
67 * Delegation call for {@link javax.rmi.PortableRemoteObject#unexportObject}.
68 */
69 void unexportObject(Remote obj)
70 throws NoSuchObjectException;
|