KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > Connector > EEG > EEM > Elements > RMIInterfaceGen


1 /*
2  * RMIInterfaceGen.java
3  *
4  * Created on 13. duben 2002, 21:08
5  */

6
7 package SOFA.Connector.EEG.EEM.Elements;
8
9 import SOFA.Connector.EEG.CodeWriter.JWriterDirectorException;
10 import SOFA.Connector.EEG.EEM.Actions.JIfaceCNRMI;
11 import SOFA.Connector.EEG.EEM.Actions.JIfaceWriterDirectorBase;
12 import SOFA.SOFAnode.Made.TIR.OperationDef;
13
14 /**
15  *
16  * @author ghort
17  * @version
18  */

19 public class RMIInterfaceGen extends JIfaceWriterDirectorBase {
20
21     /** Creates new RMIInterfaceGen */
22     public RMIInterfaceGen(String JavaDoc ifaceCDL, SOFA.Connector.Property[] params) {
23         super(ifaceCDL,params);
24     }
25
26     public String JavaDoc getMethod(OperationDef method) throws JWriterDirectorException {
27         return JIfaceCNRMI.getMethodDef(method);
28     }
29
30     public String JavaDoc[] getExtends() {
31         return new String JavaDoc[] {"java.rmi.Remote"};
32     }
33
34         public String JavaDoc getInterfaceBody() throws JWriterDirectorException {
35           return
36                 "\tString getFcItfName() throws java.rmi.RemoteException;\n"+
37                 "\tbyte[] getFcItfOwner() throws java.rmi.RemoteException;\n\n";
38         }
39
40 }
41
Popular Tags