1 26 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.installer; 27 28 import java.util.Iterator ; 30 import org.objectweb.openccm.descriptor.componentassembly.beans.ComponentinstantiationBeanImpl; 31 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.*; 32 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.registrar.RegistercomponentDeployer; 33 41 public class ComponentinstantiationDeployerHandler 42 extends HandlerBase 43 { 44 private ComponentinstantiationDeployer _deploy; 50 72 public Object 73 getInstance(ComponentinstantiationBeanImpl comp) 74 throws InitializationError 75 { 76 if(_deploy==null){ 77 _deploy=new ComponentinstantiationDeployer(); 78 _deploy.connectComponentinstantiation(comp); 79 applyCommonConfig(_deploy); 80 if(comp.getComponentproperties()!=null) 81 _deploy.connectComponentpropertiesDeployer 82 ((ComponentpropertiesDeployer)getDeployer(comp.getComponentproperties())); 83 if(comp.getRegistercomponentList()!=null) 84 for(Iterator it=comp.getRegistercomponentList().iterator();it.hasNext();){ 85 _deploy.connectRegistercomponentDeployer 86 ((RegistercomponentDeployer)getDeployer(it.next())); 87 } 88 _deploy.connectComponentInstantiationDeployInfo 89 ((ComponentinstantiationDeployInfo) 90 comp.getExtensionManager() 91 .getExtensionByName("ccm.deployer.installer.DeployInfo") 92 .getInstance()); 93 94 _deploy.initialize(); 95 } 96 return (_deploy); 97 } 98 99 } 100 | Popular Tags |