1 26 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.installer; 27 28 import org.objectweb.openccm.descriptor.componentassembly.beans.HomeplacementBean; 30 import org.objectweb.openccm.descriptor.componentassembly.beans.ProcesscollocationBeanImpl; 31 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.HandlerBase; 32 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.InitializationError; 33 41 public class ProcesscollocationDeployerHandler 42 extends HandlerBase 43 { 44 private ProcesscollocationDeployer _deploy; 50 73 public Object 74 getInstance(ProcesscollocationBeanImpl host) 75 throws InitializationError 76 { 77 if(_deploy==null){ 78 _deploy=new ProcesscollocationDeployer(); 79 _deploy.connectProcesscolloation(host); 80 applyCommonConfig(_deploy); 81 82 for(java.util.Iterator i=host.getHomeplacementList().iterator();i.hasNext(); ){ 83 HomeplacementDeployer current=(HomeplacementDeployer) 84 getDeployer((HomeplacementBean)i.next()); 85 _deploy.connectHomeplacementDeployer(current); 86 87 } 88 _deploy.initialize(); 89 } 90 91 return (_deploy); 92 } 93 94 } 95 | Popular Tags |