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.corbacomponent.ccm.CorbacomponentDeployer; 31 import org.objectweb.openccm.descriptor.corbacomponent.beans.CorbacomponentBean; 32 import org.objectweb.openccm.descriptor.softpkg.beans.DescriptorBean; 33 34 42 public abstract class DescriptorDeployerContext 43 extends ChildDeployerContext 44 { 45 private DescriptorBean descriptor; 51 private FileinarchiveDeployer fileinarchiveDeployer; 52 private CorbacomponentDeployer corbaComponentDeployer; 53 private CorbacomponentBean corbacomponent; 54 72 public DescriptorBean 73 getDescriptor() 74 { 75 return descriptor; 76 } 77 78 81 public FileinarchiveDeployer 82 getFileinarchiveDeployer() 83 { 84 return fileinarchiveDeployer; 85 } 86 87 90 public void 91 connectDescriptor(DescriptorBean bean) 92 { 93 descriptor = bean; 94 connectDeployerDescription(bean); 95 } 96 97 100 public void 101 connectFileinarchiveDeployer(FileinarchiveDeployer deployer) 102 { 103 fileinarchiveDeployer = deployer; 104 } 105 106 109 public CorbacomponentDeployer 110 getCorbaComponentDeployer() 111 { 112 return corbaComponentDeployer; 113 } 114 115 118 public void 119 connectCorbaComponentDeployer(CorbacomponentDeployer deployer) 120 { 121 corbaComponentDeployer = deployer; 122 } 123 124 127 public CorbacomponentBean 128 getCorbacomponent() 129 { 130 return corbacomponent; 131 } 132 133 136 public void 137 connectCorbacomponent(CorbacomponentBean bean) 138 { 139 corbacomponent = bean; 140 } 141 147 public abstract void 148 initializeCorbaComponentTree() 149 throws CorbaComponentFileLoadingFailureException; 150 151 158 public void initialize() throws InitializationError { 159 if(getDescriptor()==null) 160 getErrorManager() 161 .submitException(new InitializationError(this,"Connection on descriptor bean is required"+ 162 "check the handler code it must specify this connection")); 163 initializeCorbaComponentTree(); 164 getLifeCycleManager().stepEndedSuccessFully(); 165 } 166 167 168 169 } 170 | Popular Tags |