1 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 19 public class RMIInterfaceGen extends JIfaceWriterDirectorBase { 20 21 22 public RMIInterfaceGen(String ifaceCDL, SOFA.Connector.Property[] params) { 23 super(ifaceCDL,params); 24 } 25 26 public String getMethod(OperationDef method) throws JWriterDirectorException { 27 return JIfaceCNRMI.getMethodDef(method); 28 } 29 30 public String [] getExtends() { 31 return new String [] {"java.rmi.Remote"}; 32 } 33 34 public String 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 |