1 26 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.installer; 27 28 import org.objectweb.apollon.framework.ExtensionManager; 30 import org.objectweb.openccm.descriptor.componentassembly.beans.ComponentinstantiationBean; 31 import org.objectweb.openccm.descriptor.componentassembly.beans.ComponentplacementBeanImpl; 32 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.*; 33 41 public class ComponentplacementDeployerHandler 42 extends HandlerBase 43 { 44 private ComponentplacementDeployer _deploy; 50 73 public Object 74 getInstance(ComponentplacementBeanImpl comp) 75 throws InitializationError 76 { 77 if(_deploy==null){ 78 _deploy=new ComponentplacementDeployer(); 79 _deploy.connectComponentplacement(comp); 80 applyCommonConfig(_deploy); 81 _deploy.connectExistinghomeDeployer((ExistinghomeDeployer) 82 getDeployer(comp.getExistinghome())) ; 83 84 for(java.util.Iterator i=comp.getComponentinstantiationList().iterator();i.hasNext(); ){ 85 ComponentinstantiationDeployer current=(ComponentinstantiationDeployer) 86 getDeployer((ComponentinstantiationBean)i.next()); 87 _deploy.connectComponentinstantiationDeployer(current); 88 } 89 _deploy.initialize(); 90 } 91 92 return (_deploy); 93 } 94 95 } 96 | Popular Tags |