1 26 27 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.binder; 28 29 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.DeployerActiveState; 31 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.DeployerInactiveState; 32 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.FatalDeploymentException; 33 34 41 public class ConnectionsDeployer 42 extends ConnectionsDeployerContext 43 { 44 45 66 71 public void 72 deploy() 73 throws FatalDeploymentException 74 { 75 traverse(this,getConnectinterfaceDeployers()); 77 traverse(this,getConnecteventDeployers()); 79 getLifeCycleManager().stepEndedSuccessFully(); 80 } 81 82 89 public void 90 visit(ConnecteventDeployer deployer, DeployerInactiveState status) 91 throws FatalDeploymentException 92 { 93 try{ 94 deployer.deploy(); 95 } 96 catch(ConnectEventEstablishmentFailureException e){ 97 getErrorManager().submitException(e); 98 } 99 } 100 101 108 public void 109 visit(ConnectinterfaceDeployer deployer,DeployerInactiveState status) 110 throws FatalDeploymentException{ 111 try{ 112 deployer.deploy(); 113 } 114 catch(ConnectInterfaceEstablishmentFailureException e){ 115 getErrorManager().submitException(e); 116 } 117 118 } 119 124 public void 125 tearDown() 126 throws FatalDeploymentException 127 { 128 traverse(this,getConnectinterfaceDeployers()); 129 traverse(this,getConnecteventDeployers()); 130 getLifeCycleManager().stepEndedSuccessFully(); 131 } 132 133 140 public void visit(ConnecteventDeployer deployer, DeployerActiveState status) 141 throws FatalDeploymentException{ 142 try{ 143 deployer.tearDown(); 144 } 145 catch(ConnectEventBreakingFailureException e){ 146 getErrorManager().submitException(e); 147 } 148 } 149 150 157 public void visit(ConnectinterfaceDeployer deployer,DeployerActiveState status) 158 throws FatalDeploymentException{ 159 try{ 160 deployer.tearDown(); 161 } 162 catch(ConnectInterfaceBreakingFailureException e){ 163 getErrorManager().submitException(e); 164 } 165 166 } 167 168 } 169 | Popular Tags |