1 26 27 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.installer; 28 29 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.*; 31 import org.omg.Components.CCMHome; 32 33 39 public class ComponentplacementDeployer 40 extends ComponentplacementDeployerContext 41 { 42 private CCMHome homePlaced; 48 54 60 66 72 public void deploy() 73 throws FatalDeploymentException 74 { 75 try { 76 homePlaced = getExistinghomeDeployer().resolveHome(); 77 } catch (ExistingHomeResolutionFailureException e) { 78 getLifeCycleManager().stepAborded(); 79 getErrorManager().submitException(e); 80 return; 81 } 82 traverse(this, getComponentinstantiationDeployer()); 83 getLifeCycleManager().stepEndedSuccessFully(); 84 } 85 86 90 public void 91 tearDown() 92 throws FatalDeploymentException 93 { 94 traverse(this, getComponentinstantiationDeployer()); 95 getLifeCycleManager().stepEndedSuccessFully(); 96 } 97 98 105 public void 106 visit(ComponentinstantiationDeployer comp, 107 DeployerFailureState status) 108 throws FatalDeploymentException 109 { 110 getLifeCycleManager().stepEndedSuccessFully(); 111 } 112 119 public void 120 visit(ComponentinstantiationDeployer comp, 121 DeployerInactiveState status) 122 throws FatalDeploymentException 123 { 124 try { 125 comp.deploy(homePlaced); 126 } catch (ComponentInstantiationFailureException e) { 127 getErrorManager().submitException(e); 128 } 129 130 } 131 139 public void 140 visit(ComponentinstantiationDeployer comp, 141 DeployerActiveState status) 142 throws FatalDeploymentException 143 { 144 comp.tearDown(); 145 } 146 147 } 148 | Popular Tags |