1 26 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.registrar; 27 28 import org.objectweb.openccm.descriptor.componentassembly.beans.RegisterwithtraderBean; 29 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.ChildDeployerContext; 30 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.InitializationError; 31 32 40 public class RegisterwithtraderDeployerContext 41 extends ChildDeployerContext 42 { 43 private RegisterwithtraderBean registerwithtrader; 49 67 public RegisterwithtraderBean 68 getRegisterwithtrader() 69 { 70 return registerwithtrader; 71 } 72 73 76 public void 77 connectRegisterwithtrader(RegisterwithtraderBean bean) 78 { 79 registerwithtrader = bean; 80 } 81 82 89 public void 90 initialize() 91 throws InitializationError 92 { 93 if(getRegisterwithtrader()==null) 94 getErrorManager() 95 .submitException(new InitializationError(this,"Connection on registerwithtrader bean is required"+ 96 "check the handler code it must specify this connection")); 97 getLifeCycleManager().stepEndedSuccessFully(); 98 } 99 100 101 102 } 103 | Popular Tags |