1 26 package org.objectweb.openccm.descriptor.softpkg.ccm; 27 28 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.ChildDeployerContext; 29 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.InitializationError; 30 import org.objectweb.openccm.descriptor.softpkg.beans.CodeBean; 31 32 40 public class CodeDeployerContext 41 extends ChildDeployerContext 42 { 43 private CodeBean code; 49 private FileinarchiveDeployer fileinarchiveDeployer; 50 68 public CodeBean 69 getCode() 70 { 71 return code; 72 } 73 74 77 public void 78 connectCode(CodeBean bean) 79 { 80 code = bean; 81 connectDeployerDescription(bean); 82 } 83 84 87 public FileinarchiveDeployer 88 getFileinarchiveDeployer() 89 { 90 return fileinarchiveDeployer; 91 } 92 93 96 public void 97 connectFileinarchiveDeployer(FileinarchiveDeployer deployer) 98 { 99 fileinarchiveDeployer = deployer; 100 } 101 102 109 public void 110 initialize() 111 throws InitializationError 112 { 113 if(getCode()==null) 115 getErrorManager() 116 .submitException(new InitializationError(this,"Connection on code bean is required"+ 117 "check the handler code it must specify this connection")); 118 getLifeCycleManager().stepEndedSuccessFully(); 119 } 120 121 122 123 } 124 | Popular Tags |