1 22 package org.jboss.deployers.plugins.deployers.helpers; 23 24 import org.jboss.deployers.spi.DeploymentException; 25 import org.jboss.deployers.spi.deployer.DeploymentUnit; 26 27 34 public abstract class AbstractSimpleRealDeployer<T> extends AbstractTypedDeployer<T> 35 { 36 43 public AbstractSimpleRealDeployer(Class <T> deploymentType) 44 { 45 super(deploymentType); 46 setRelativeOrder(REAL_DEPLOYER); 47 } 48 49 public void deploy(DeploymentUnit unit) throws DeploymentException 50 { 51 T deployment = unit.getAttachment(getDeploymentType()); 52 if (deployment != null) 53 deploy(unit, deployment); 54 } 55 56 public void undeploy(DeploymentUnit unit) 57 { 58 T deployment = unit.getAttachment(getDeploymentType()); 59 if (deployment != null) 60 undeploy(unit, deployment); 61 } 62 63 public abstract void deploy(DeploymentUnit unit, T deployment) throws DeploymentException; 64 65 public abstract void undeploy(DeploymentUnit unit, T deployment); 66 } 67 | Popular Tags |