1 26 package org.objectweb.openccm.descriptor.softpkg.ccm; 27 28 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.HandlerBase; 29 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.InitializationError; 30 import org.objectweb.openccm.descriptor.softpkg.beans.SoftpkgBeanImpl; 31 32 40 public class SoftpkgDeployerHandler 41 extends HandlerBase 42 { 43 private SoftpkgDeployer _deploy; 49 72 public Object 73 getInstance(SoftpkgBeanImpl cons) 74 throws InitializationError 75 { 76 if (_deploy == null) { 77 _deploy = new SoftpkgDeployer(); 78 _deploy.connectSoftpkg(cons); 79 applyCommonConfig(_deploy); 80 if (cons.getImplementationList() != null) 81 for (java.util.Iterator i = 82 cons.getImplementationList().iterator(); 83 i.hasNext(); 84 ) { 85 ImplementationDeployer implDeployer = 86 (ImplementationDeployer) getDeployer(i.next()); 87 88 _deploy.connectImplementationDeployer(implDeployer); 89 } 90 91 if (cons.getDependencyList() != null) 92 for (java.util.Iterator i = cons.getDependencyList().iterator(); 93 i.hasNext(); 94 ) { 95 DependencyDeployer dd = 96 (DependencyDeployer) getDeployer(i.next()); 97 98 _deploy.connectDependencyDeployer(dd); 99 100 } 101 if (cons.getDescriptorList() != null) 102 for (java.util.Iterator i = cons.getDescriptorList().iterator(); 103 i.hasNext(); 104 ) 105 _deploy.connectDescriptorDeployer( 106 (DescriptorDeployer) getDeployer(i.next())); 107 108 _deploy.initialize(); 109 } 110 return (_deploy); 111 } 112 113 } 114 | Popular Tags |