1 26 27 package org.objectweb.openccm.OpenCCM_DCI.cif; 28 29 import org.objectweb.openccm.OpenCCM_DCI.*; 30 31 39 40 public class AssemblyManagerHomeImpl 41 extends org.objectweb.openccm 42 .OpenCCM_DCI.AssemblyManagerSessionComposition 43 .AssemblyManagerHomeImpl 44 45 { 46 private String xml_file_path; 53 private String xml_assembly; 55 56 62 63 public 64 AssemblyManagerHomeImpl() 65 { 66 super(); 67 } 68 69 75 81 87 92 public org.omg.Components.ExecutorSegmentBase 93 create_executor_segment(int segid) 94 { 95 switch(segid){ 96 case 0 97 : if(xml_assembly!=null){ 98 String tmp=xml_assembly; 99 xml_assembly=null; 100 return new AssemblyManagerXMLImpl(tmp); 101 } 102 else{ 103 String tmp=xml_file_path; 104 xml_file_path=null; 105 return new AssemblyManagerImpl(tmp); 106 } 107 108 case org.objectweb.openccm.OpenCCM_DCI. 109 AssemblyManagerSessionComposition. 110 AssemblySeg._segment_id_value 111 : return new AssemblySegImpl(); 112 113 default:System.err.println("AMH >>Invalid segment request"); 114 return null; 115 } 116 117 } 118 119 125 129 public static org.omg.Components.HomeExecutorBase 130 create_home() 131 { 132 133 return new AssemblyManagerHomeImpl(); 134 } 135 136 143 public org.omg.Components.EnterpriseComponent 144 create_assembly_manager(String xml_file_path){ 145 146 this.xml_file_path=xml_file_path; 147 return create(); 148 } 149 150 157 public org.omg.Components.EnterpriseComponent 158 create_assembly_manager_xml(String xml_assembly){ 159 160 this.xml_assembly=xml_assembly; 161 return create(); 162 } 163 164 168 static 169 { 170 AssemblyManagerRemovedDefaultFactory.register(); 172 } 173 174 175 176 } 177 | Popular Tags |