1 26 27 package org.objectweb.openccm.OpenCCM_DCI.cif; 28 29 30 38 39 public class AssemblyManagerModelHomeImpl 40 extends org.objectweb.openccm.OpenCCM_DCI.AssemblyManagerModelSessionComposition. 41 AssemblyManagerModelHomeImpl 42 { 44 50 private String xml_descriptor; 51 52 private byte[] componentArchive; 53 54 60 61 public 62 AssemblyManagerModelHomeImpl() 63 { 64 super(); 65 } 66 67 73 79 85 90 public org.omg.Components.ExecutorSegmentBase 91 create_executor_segment(int segid) 92 { 93 switch(segid) 94 { 95 case 0 : 96 if(xml_descriptor!=null){ 97 String tmp=xml_descriptor; 98 xml_descriptor=null; 99 return new AssemblyManagerModelImpl(tmp); 100 } 101 else { 102 byte []tmp=componentArchive; 103 componentArchive=null; 104 return new AssemblyManagerModelImpl(tmp); 105 } 106 107 108 case org.objectweb.openccm.OpenCCM_DCI. 109 AssemblyManagerModelSessionComposition. 110 AssemblyInstanceManagementSeg._segment_id_value 111 : return new AssemblyInstanceManagementSegImpl(); 112 113 default:System.err.println("AssemblyManagerModel segmentation problem at creation!"); 114 return null; 115 } 116 117 } 118 119 125 129 public static org.omg.Components.HomeExecutorBase 130 create_home() 131 { 132 133 return new AssemblyManagerModelHomeImpl(); 134 } 135 136 140 public org.omg.Components.EnterpriseComponent 141 create_assembly_model(String xml_descriptor) 142 { 143 this.xml_descriptor=xml_descriptor; 144 return create(); 145 } 146 147 public org.omg.Components.EnterpriseComponent 148 create_assembly_model_archive(byte[] componentArchive) 149 { 150 this.componentArchive=componentArchive; 151 return create(); 152 } 153 154 158 static 159 { 160 AssemblyManagerRemovedDefaultFactory.register(); 162 } 163 164 } 165 | Popular Tags |