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.CodeBeanImpl; 31 32 40 public class CodeDeployerHandler 41 extends HandlerBase 42 { 43 private CodeDeployer _deploy; 49 72 public Object 73 getInstance(CodeBeanImpl cons) 74 throws InitializationError 75 { 76 if (_deploy == null) { 77 _deploy = new CodeDeployer(); 78 _deploy.connectCode(cons); 79 applyCommonConfig(_deploy); 80 81 if (cons.getFileinarchive() != null) { 82 _deploy.connectFileinarchiveDeployer( 83 (FileinarchiveDeployer) getDeployer(cons 84 .getFileinarchive())); 85 } 86 _deploy.initialize(); 87 } 88 89 return (_deploy); 90 } 91 92 } 93 | Popular Tags |