1 26 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.binder; 27 28 import org.objectweb.openccm.descriptor.componentassembly.Existinginterface; 29 import org.objectweb.openccm.descriptor.componentassembly.beans.ExistinginterfaceBean; 30 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.ChildDeployerContext; 31 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.InitializationError; 32 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.util.FindbyDeployer; 33 34 42 public class ExistinginterfaceDeployerContext extends ChildDeployerContext { 43 private ExistinginterfaceBean existingInterface; 49 private FindbyDeployer findbyDeployer; 50 51 67 70 public Existinginterface 71 getExistingInterface() 72 { 73 return existingInterface; 74 } 75 76 79 public FindbyDeployer 80 getFindbyDeployer() 81 { 82 return findbyDeployer; 83 } 84 85 88 public void 89 connectExistingInterface(ExistinginterfaceBean existinginterface) 90 { 91 existingInterface = existinginterface; 92 connectDeployerDescription(existinginterface); 93 } 94 95 98 public void 99 connectFindbyDeployer(FindbyDeployer deployer) 100 { 101 findbyDeployer = deployer; 102 } 103 104 111 public void 112 initialize() 113 throws InitializationError 114 { 115 if(getExistingInterface()==null) 116 getErrorManager() 117 .submitException(new InitializationError(this,"Connection on existinginterface bean is required"+ 118 "check the handler code it must specify this connection")); 119 120 if(getFindbyDeployer()==null) 121 getErrorManager() 122 .submitException(new InitializationError(this,"Findby child must be"+ 123 "specified check the existinginterface element"+ 124 "description\n."+getStringifiedDeployerDescription())); 125 getLifeCycleManager().stepEndedSuccessFully(); 126 } 127 } 128 | Popular Tags |