1 22 package org.jboss.deployers.plugins.deployer; 23 24 import org.jboss.deployers.spi.DeploymentException; 25 import org.jboss.deployers.spi.deployer.DeploymentUnit; 26 27 33 public abstract class AbstractSimpleDeployer extends AbstractDeployer 34 { 35 public void prepareDeploy(DeploymentUnit unit) throws DeploymentException 36 { 37 } 39 40 public void prepareUndeploy(DeploymentUnit unit) 41 { 42 undeploy(unit); 43 } 44 45 public void handoff(DeploymentUnit from, DeploymentUnit to) throws DeploymentException 46 { 47 } 49 50 public void commitDeploy(DeploymentUnit unit) throws DeploymentException 51 { 52 deploy(unit); 53 } 54 55 public void commitUndeploy(DeploymentUnit unit) 56 { 57 } 59 60 66 public abstract void deploy(DeploymentUnit unit) throws DeploymentException; 67 68 73 public void undeploy(DeploymentUnit unit) 74 { 75 } 76 } 77 | Popular Tags |