1 26 27 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.installer; 28 29 import org.objectweb.openccm.descriptor.componentassembly.beans.ComponentpropertiesBean; 30 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.*; 31 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.util.FileinarchiveDeployer; 32 33 41 public class ComponentpropertiesDeployerContext 42 extends ChildDeployerContext 43 { 44 private FileinarchiveDeployer fileinarchiveDeployer; 50 private ComponentpropertiesBean componentproperties; 51 69 public ComponentpropertiesBean getComponentproperties() { 70 return componentproperties; 71 } 72 73 76 public FileinarchiveDeployer getFileinarchiveDeployer() { 77 return fileinarchiveDeployer; 78 } 79 80 83 public void connectComponentproperties(ComponentpropertiesBean bean) { 84 componentproperties = bean; 85 connectDeployerDescription(bean); 86 } 87 88 91 public void connectFileinarchiveDeployer(FileinarchiveDeployer deployer) { 92 fileinarchiveDeployer = deployer; 93 } 94 95 96 103 public void 104 initialize() 105 throws InitializationError 106 { 107 if(getComponentproperties()==null) 109 getErrorManager() 110 .submitException(new InitializationError(this,"Connection on componentproperties is required"+ 111 "check the handler code it must specify this connection")); 112 if(getFileinarchiveDeployer()==null) 113 getErrorManager() 114 .submitException(new InitializationError(this,"The fileinarchive child"+ 115 "must be specified in componentproperties element,"+ 116 "check you element description.\n"+ 117 getStringifiedDeployerDescription())); 118 getLifeCycleManager().stepEndedSuccessFully(); 119 } 120 121 122 123 } 124 | Popular Tags |