1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 package org.coach.reactor; 27 28 36 37 public class IR3toReactorImpl 38 extends org.objectweb.openccm.corba.Application 39 { 40 46 52 55 public 56 IR3toReactorImpl() 57 { 58 } 59 60 66 72 75 public static void 76 main(String [] args) 77 { 78 IR3toReactorImpl ir3 = new IR3toReactorImpl(); 79 ir3.start(args); 80 } 81 82 88 95 public int 96 run(String [] args) 97 { 98 org.omg.CORBA.ComponentIR.Repository repositoryRef = 100 org.objectweb.openccm.corba.TheInterfaceRepository.getRepository(); 101 102 org.objectweb.ccm.IDL3.Repository rep = 104 new org.objectweb.ccm.IDL3.Repository(repositoryRef); 105 106 try 107 { 108 IDL3_ReactorImpl mi = new IDL3_ReactorImpl(rep); 109 110 mi.generate(args[0]); 111 } 112 catch(fr.lifl.cim.jidlscript.lang.JISError ex) 113 { 114 System.err.println(ex.exception.toString()); 115 return 1; 116 } 117 118 return 0; 119 } 120 } 121 | Popular Tags |