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.DependencyBean; 31 32 40 public class DependencyDeployerContext 41 extends ChildDeployerContext 42 { 43 private DependencyBean dependency; 49 private FileinarchiveDeployer fileinarchiveDeployer; 50 68 public DependencyBean 69 getDependency() 70 { 71 return dependency; 72 } 73 74 77 public void 78 connectDependency(DependencyBean bean) 79 { 80 dependency = 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 103 110 public void 111 initialize() 112 throws InitializationError 113 { 114 if(getDependency()==null) 116 getErrorManager() 117 .submitException(new InitializationError(this,"Connection on dependency bean is required"+ 118 "check the handler code it must specify this connection")); 119 getLifeCycleManager().stepEndedSuccessFully(); 120 } 121 122 123 124 } 125 | Popular Tags |