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.ComponentplacementBean; 31 import org.objectweb.openccm.descriptor.componentassembly.beans.HomeplacementBean; 32 import org.objectweb.openccm.descriptor.componentassembly.beans.HostcollocationBean; 33 import org.objectweb.openccm.descriptor.componentassembly.beans.PartitioningBeanImpl; 34 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.HandlerBase; 35 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.InitializationError; 36 37 45 public class PartitioningDeployerHandler 46 extends HandlerBase 47 { 48 private ExtensionManager _extManager; 54 private PartitioningDeployer _deploy; 55 78 public Object 79 getInstance(PartitioningBeanImpl parti) 80 throws InitializationError 81 { 82 if(_deploy==null){ 83 _deploy=new PartitioningDeployer(); 84 applyCommonConfig(_deploy); 85 86 _deploy.connectPartitioning(parti); 87 for(java.util.Iterator i=parti.getHomeplacementList().iterator();i.hasNext(); ){ 88 HomeplacementDeployer current=(HomeplacementDeployer) 89 getDeployer((HomeplacementBean)i.next()); 90 current.initialize(); 91 _deploy.connectHomeplacementDeployer(current); 92 } 93 94 for(java.util.Iterator i=parti.getComponentplacementList().iterator();i.hasNext(); ){ 95 ComponentplacementDeployer current=(ComponentplacementDeployer) 96 getDeployer((ComponentplacementBean)i.next()); 97 _deploy.connectComponentplacementDeployer(current); 98 } 99 100 for(java.util.Iterator i=parti.getHostcollocationList().iterator();i.hasNext(); ){ 101 HostcollocationDeployer current=(HostcollocationDeployer) 102 getDeployer((HostcollocationBean)i.next()); 103 104 _deploy.connectHostcollocationDeployer(current); 105 } 113 _deploy.initialize(); 114 } 115 116 return (_deploy); 117 } 118 119 } 120 | Popular Tags |