1 26 27 package org.objectweb.openccm.ir3; 28 29 37 38 public class ComponentModuleDef_impl 39 extends ModuleDef_impl 40 implements org.omg.CORBA.ComponentIR.ModuleDefOperations 41 { 42 48 54 57 public 58 ComponentModuleDef_impl(IFR ifr, 59 Container_impl container) 60 { 61 super(ifr, container); 63 64 setServant(new org.omg.CORBA.ComponentIR.ModuleDefPOATie(this)); 66 } 67 68 74 77 public org.omg.CORBA.ComponentIR.ModuleDef 78 asComponentModuleDef() 79 { 80 return org.omg.CORBA.ComponentIR.ModuleDefHelper.narrow(asObject()); 81 } 82 83 89 92 public org.omg.CORBA.ComponentIR.ModuleDef 93 create_component_module(String id, 94 String name, 95 String version) 96 { 97 ComponentModuleDef_impl module = new ComponentModuleDef_impl(getIFR(), this); 98 99 try 100 { 101 addContained(module, id, name, version); 102 } 103 catch(org.omg.CORBA.SystemException exc) 104 { 105 module.destroy(); 106 throw exc; 107 } 108 109 return module.asComponentModuleDef(); 110 } 111 112 115 public org.omg.CORBA.ComponentIR.ComponentDef 116 create_component(String id, 117 String name, 118 String version, 119 org.omg.CORBA.ComponentIR.ComponentDef base_component, 120 org.omg.CORBA.InterfaceDef [] supported_interfaces) 121 { 122 ComponentDef_impl c = new ComponentDef_impl(getIFR(), this); 123 try 124 { 125 addContained(c, id, name, version); 126 c.base_component(base_component); 127 c.supported_interfaces(supported_interfaces); 128 } 129 catch(org.omg.CORBA.SystemException exc) 130 { 131 c.destroy(); 132 throw exc; 133 } 134 135 c.whenCreated(); 136 return c.asComponentDef(); 137 } 138 139 142 public org.omg.CORBA.ComponentIR.HomeDef 143 create_home(String id, 144 String name, 145 String version, 146 org.omg.CORBA.ComponentIR.HomeDef base_home, 147 org.omg.CORBA.ComponentIR.ComponentDef managed_component, 148 org.omg.CORBA.InterfaceDef [] supported_interfaces, 149 org.omg.CORBA.ValueDef primary_key) 150 { 151 HomeDef_impl h = new HomeDef_impl(getIFR(), this); 152 153 try 154 { 155 addContained(h, id, name, version); 156 h.base_home(base_home); 157 h.managed_component(managed_component); 158 h.supported_interfaces(supported_interfaces); 159 h.primary_key(primary_key); 160 } 161 catch(org.omg.CORBA.SystemException exc) 162 { 163 h.destroy(); 164 throw exc; 165 } 166 167 h.whenCreated(); 168 return h.asHomeDef(); 169 } 170 171 174 public org.omg.CORBA.ComponentIR.EventDef 175 create_event(String id, 176 String name, 177 String version, 178 boolean is_custom, 179 boolean is_abstract, 180 org.omg.CORBA.ValueDef base_value, 181 boolean is_truncatable, 182 org.omg.CORBA.ValueDef [] abstract_base_values, 183 org.omg.CORBA.InterfaceDef [] supported_interfaces, 184 org.omg.CORBA.ExtInitializer[] initializers) 185 { 186 EventDef_impl event = new EventDef_impl(getIFR(), this); 187 188 try 189 { 190 addContained(event, id, name, version); 191 event.is_custom(is_custom); 192 event.is_abstract(is_abstract); 193 event.base_value(base_value); 194 event.is_truncatable(is_truncatable); 195 event.abstract_base_values(abstract_base_values); 196 event.supported_interfaces(supported_interfaces); 197 event.ext_initializers(initializers); 198 } 199 catch(org.omg.CORBA.SystemException exc) 200 { 201 event.destroy(); 202 throw exc; 203 } 204 205 event.whenCreated(); 206 return event.asEventDef(); 207 } 208 } 209 | Popular Tags |