1 23 24 package javax.enterprise.deploy.spi; 25 26 import javax.enterprise.deploy.spi.status.*; 27 import javax.enterprise.deploy.spi.exceptions.*; 28 import javax.enterprise.deploy.model.DeployableObject ; 29 import javax.enterprise.deploy.shared.DConfigBeanVersionType ; 30 import javax.enterprise.deploy.shared.ModuleType ; 31 import java.io.File ; 32 import java.io.InputStream ; 33 import java.util.Locale ; 34 35 import java.lang.Deprecated ; 36 37 44 public interface DeploymentManager { 45 46 56 public Target [] getTargets() throws IllegalStateException ; 57 58 59 80 public TargetModuleID [] getRunningModules(ModuleType moduleType, 81 Target [] targetList) throws TargetException, 82 IllegalStateException ; 83 84 105 public TargetModuleID [] getNonRunningModules(ModuleType moduleType, 106 Target [] targetList) throws TargetException, 107 IllegalStateException ; 108 109 129 public TargetModuleID [] getAvailableModules(ModuleType moduleType, 130 Target [] targetList) throws TargetException, 131 IllegalStateException ; 132 133 142 143 public DeploymentConfiguration createConfiguration(DeployableObject dObj) 144 throws InvalidModuleException; 145 146 147 165 166 public ProgressObject distribute(Target [] targetList, 167 File moduleArchive, File deploymentPlan) 168 throws IllegalStateException ; 169 170 189 190 public ProgressObject distribute(Target [] targetList, 191 InputStream moduleArchive, InputStream deploymentPlan) 192 throws IllegalStateException ; 193 194 214 215 public ProgressObject distribute(Target [] targetList, ModuleType type, 216 InputStream moduleArchive, InputStream deploymentPlan) 217 throws IllegalStateException ; 218 219 235 236 public ProgressObject start(TargetModuleID [] moduleIDList) 237 throws IllegalStateException ; 238 239 255 256 public ProgressObject stop(TargetModuleID [] moduleIDList) 257 throws IllegalStateException ; 258 259 276 277 public ProgressObject undeploy(TargetModuleID [] moduleIDList) 278 throws IllegalStateException ; 279 280 289 public boolean isRedeploySupported(); 290 291 326 327 public ProgressObject redeploy(TargetModuleID [] moduleIDList, 328 File moduleArchive, File deploymentPlan) 329 throws java.lang.UnsupportedOperationException , 330 IllegalStateException ; 331 332 368 369 public ProgressObject redeploy(TargetModuleID [] moduleIDList, 370 InputStream moduleArchive, InputStream deploymentPlan) 371 throws java.lang.UnsupportedOperationException , 372 IllegalStateException ; 373 374 375 376 394 395 public void release(); 396 397 403 public Locale getDefaultLocale(); 404 405 411 public Locale getCurrentLocale(); 412 413 420 public void setLocale(Locale locale) 421 throws java.lang.UnsupportedOperationException ; 422 423 428 public Locale [] getSupportedLocales(); 429 430 436 public boolean isLocaleSupported(Locale locale); 437 438 447 public DConfigBeanVersionType getDConfigBeanVersion(); 448 449 458 public boolean isDConfigBeanVersionSupported(DConfigBeanVersionType version); 459 460 469 public void setDConfigBeanVersion(DConfigBeanVersionType version) throws 470 DConfigBeanVersionUnsupportedException; 471 } 472 | Popular Tags |