1 26 27 package org.objectweb.openccm.ast.lib; 28 29 30 import org.objectweb.openccm.ast.api.DeclarationKind; 31 32 33 import org.omg.CORBA.ComponentIR.FactoryDef; 34 import org.omg.CORBA.ComponentIR.FactoryDefHelper; 35 36 53 54 public class FactoryDeclImpl 55 extends HomeOperationBaseImpl 56 implements org.objectweb.openccm.ast.api.FactoryDecl 57 { 58 64 65 private FactoryDef factory_def_; 66 67 73 79 protected 80 FactoryDeclImpl(Repository rep, 81 ScopeImpl parent) 82 { 83 super(rep, parent); 85 86 factory_def_ = null; 88 } 89 90 96 102 107 protected void 108 load(org.omg.CORBA.Contained contained) 109 { 110 factory_def_ = FactoryDefHelper.narrow(contained); 111 super.load(contained); 112 } 113 114 119 protected org.omg.CORBA.Contained 120 getContained() 121 { 122 return factory_def_; 123 } 124 125 131 137 143 146 public void 147 create() 148 { 149 factory_def_ = the_parent_.getHomeDef(). 150 create_factory(getId(), getName(), getVersion(), 151 parameters_.getParameterDescriptionSeq(), 152 exceptions_.getExceptionDefSeq()); 153 } 154 155 160 public long 161 getDeclKind() 162 { 163 return DeclarationKind.dk_factory; 164 } 165 166 172 178 184 190 196 } 197 | Popular Tags |