KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > spi > presentation > rmi > DynamicStub


1 /*
2  * @(#)DynamicStub.java 1.5 04/06/21
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.spi.presentation.rmi ;
9
10 import java.rmi.RemoteException JavaDoc ;
11
12 import org.omg.CORBA.portable.Delegate JavaDoc ;
13 import org.omg.CORBA.portable.OutputStream JavaDoc ;
14
15 import org.omg.CORBA.ORB JavaDoc ;
16
17 /** Interface used to support dynamically generated stubs.
18  * This supplies some methods that are found in
19  * org.omg.CORBA.portable.ObjectImpl that are not available
20  * in org.omg.CORBA.Object.
21  */

22 public interface DynamicStub extends org.omg.CORBA.Object JavaDoc
23 {
24     /** Similar to ObjectImpl._set_delegate
25      */

26     void setDelegate( Delegate JavaDoc delegate ) ;
27
28     /** Similar to ObjectImpl._get_delegate
29      */

30     Delegate JavaDoc getDelegate() ;
31
32     /** Similar to ObjectImpl._orb()
33      */

34     ORB JavaDoc getORB() ;
35
36     /** Similar to ObjectImpl._ids
37      */

38     String JavaDoc[] getTypeIds() ;
39
40     /** Connect this dynamic stub to an ORB.
41      * Just as in standard RMI-IIOP, this is required after
42      * a dynamic stub is deserialized from an ObjectInputStream.
43      * It is not needed when unmarshalling from a
44      * org.omg.CORBA.portable.InputStream.
45      */

46     void connect( ORB JavaDoc orb ) throws RemoteException JavaDoc ;
47
48     boolean isLocal() ;
49
50     OutputStream JavaDoc request( String JavaDoc operation, boolean responseExpected ) ;
51 }
52
53
Popular Tags