1 26 27 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.installer; 28 29 import org.objectweb.openccm.descriptor.componentassembly.beans.NodeBean; 30 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.InitializationError; 31 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.ChildDeployerContext; 32 33 41 public class NodeDeployerContext 42 extends ChildDeployerContext 43 { 44 50 private NodeBean nodeBean; 51 52 58 64 70 73 public NodeBean 74 getNode() 75 { 76 return nodeBean; 77 } 78 79 82 public void 83 connectNode(NodeBean bean) 84 { 85 nodeBean = bean; 86 connectDeployerDescription(bean); 87 } 88 89 96 public void initialize() throws InitializationError { 97 if (getNode() == null) 98 getErrorManager().submitException( 99 new InitializationError( 100 this, 101 "Connection on node bean is required" 102 + "check the handler code it must specify this connection")); 103 if (getNode().getName() == null || getNode().getName().length() == 0) 104 getErrorManager().submitException( 105 new InitializationError( 106 this, 107 " The name attribute of node element must be fullfilled")); 108 getLifeCycleManager().stepEndedSuccessFully(); 110 } 111 112 } 113 | Popular Tags |