1 26 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.installer; 27 28 import org.objectweb.openccm.descriptor.componentassembly.beans.DestinationBean; 29 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.*; 30 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.util.FindbyDeployer; 31 import org.objectweb.openccm.descriptor.softpkg.ccm.ImplementationDeployer; 32 import org.objectweb.openccm.descriptor.softpkg.ccm.SoftpkgDeployer; 33 34 42 public class DestinationDeployerContext 43 extends ChildDeployerContext 44 { 45 private DestinationBean destination; 51 private FindbyDeployer findbyDeployer; 52 private NodeDeployer nodeDeployer; 53 private SoftpkgDeployer softpkgDeployer; 54 private ImplementationDeployer implementationDeployer; 55 73 public DestinationBean 74 getDestination() 75 { 76 return destination; 77 } 78 79 82 public void 83 connectDestination(DestinationBean bean) 84 { 85 destination = bean; 86 connectDeployerDescription(bean); 87 } 88 89 92 public FindbyDeployer 93 getFindbyDeployer() 94 { 95 return findbyDeployer; 96 } 97 98 101 public void 102 connectFindbyDeployer(FindbyDeployer deployer) 103 { 104 findbyDeployer = deployer; 105 } 106 107 110 public NodeDeployer 111 getNodeDeployer() 112 { 113 return nodeDeployer; 114 } 115 116 119 public void 120 connectNodeDeployer(NodeDeployer deployer) 121 { 122 nodeDeployer = deployer; 123 } 124 125 128 public ImplementationDeployer 129 getImplementationDeployer() 130 { 131 return implementationDeployer; 132 } 133 134 137 public SoftpkgDeployer 138 getSoftpkgDeployer() 139 { 140 return softpkgDeployer; 141 } 142 143 146 public void 147 connectImplementationDeployer(ImplementationDeployer deployer) 148 { 149 implementationDeployer = deployer; 150 } 151 152 155 public void 156 connectSoftpkgDeployer(SoftpkgDeployer deployer) 157 { 158 softpkgDeployer = deployer; 159 } 160 161 168 public void initialize() 169 throws InitializationError 170 { 171 if(getDestination()==null) 172 getErrorManager() 173 .submitException(new InitializationError(this,"Connection on destination bean is required"+ 174 "check the handler code it must specify this connection")); 175 getLifeCycleManager().stepEndedSuccessFully(); 177 } 178 179 180 181 } 182 | Popular Tags |