1 19 20 25 26 package org.netbeans.modules.j2ee.deployment.plugins.api; 27 28 import org.netbeans.modules.j2ee.deployment.plugins.api.AppChangeDescriptor; 29 import javax.enterprise.deploy.spi.Target ; 30 import javax.enterprise.deploy.spi.TargetModuleID ; 31 import javax.enterprise.deploy.spi.status.ProgressObject ; 32 import javax.enterprise.deploy.model.DeployableObject ; 33 import javax.enterprise.deploy.spi.DeploymentConfiguration ; 34 35 import java.io.File ; 36 37 65 public abstract class IncrementalDeployment { 66 67 77 public abstract ProgressObject initialDeploy(Target target, DeployableObject app, DeploymentConfiguration configuration, File dir); 78 79 86 public abstract ProgressObject incrementalDeploy(TargetModuleID module, AppChangeDescriptor changes); 87 88 94 public abstract boolean canFileDeploy(Target target, DeployableObject deployable); 95 96 105 public abstract File getDirectoryForNewApplication(Target target, DeployableObject app, DeploymentConfiguration configuration); 106 107 116 public File getDirectoryForNewApplication(String deploymentName, Target target, DeploymentConfiguration configuration) { 117 return getDirectoryForNewApplication(target, configuration.getDeployableObject(), configuration); 118 } 119 120 128 public abstract File getDirectoryForNewModule(File appDir, String uri, DeployableObject module, DeploymentConfiguration configuration); 129 130 135 public abstract File getDirectoryForModule(TargetModuleID module); 136 137 144 public String getModuleUrl(TargetModuleID module) { 145 return null; 146 } 147 148 154 public void notifyDeployment(TargetModuleID module) { 155 } 157 } 158 | Popular Tags |