1 26 package org.objectweb.openccm.descriptor.corbacomponent.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.beans.CorbacomponentBean; 31 32 40 public class CorbacomponentDeployerContext 41 extends ChildDeployerContext 42 { 43 private CorbacomponentBean corbacomponent; 49 67 public CorbacomponentBean 68 getCorbacomponent() 69 { 70 return corbacomponent; 71 } 72 73 76 public void 77 connectCorbacomponent(CorbacomponentBean bean) 78 { 79 corbacomponent = bean; 80 } 81 82 89 public void 90 initialize() 91 throws InitializationError 92 { 93 if(getCorbacomponent()==null) 95 getErrorManager() 96 .submitException(new InitializationError(this,"Connection on corbacomponent bean is required"+ 97 "check the handler code it must specify this connection")); 98 getLifeCycleManager().stepEndedSuccessFully(); 99 } 100 } 101 | Popular Tags |