1 7 package test.enterprise.deploy.spi; 8 9 import java.io.File ; 10 import java.io.InputStream ; 11 import java.util.Locale ; 12 13 import javax.enterprise.deploy.model.DeployableObject ; 14 import javax.enterprise.deploy.shared.DConfigBeanVersionType ; 15 import javax.enterprise.deploy.shared.ModuleType ; 16 import javax.enterprise.deploy.spi.DeploymentConfiguration ; 17 import javax.enterprise.deploy.spi.DeploymentManager ; 18 import javax.enterprise.deploy.spi.Target ; 19 import javax.enterprise.deploy.spi.TargetModuleID ; 20 import javax.enterprise.deploy.spi.exceptions.DConfigBeanVersionUnsupportedException ; 21 import javax.enterprise.deploy.spi.exceptions.InvalidModuleException ; 22 import javax.enterprise.deploy.spi.exceptions.TargetException ; 23 import javax.enterprise.deploy.spi.status.ProgressObject ; 24 25 26 32 public class BasicDeploymentManager implements DeploymentManager 33 { 34 private boolean connected = false; 35 36 private String uri; 37 38 39 44 public BasicDeploymentManager(String uri) 45 { 46 this.uri = uri; 47 } 48 49 50 57 public DeploymentConfiguration createConfiguration(DeployableObject dObj) 58 throws InvalidModuleException 59 { 60 return null; 61 } 62 63 64 73 public ProgressObject distribute(Target [] targetList, File moduleArchive, File deploymentPlan) 74 throws IllegalStateException 75 { 76 return null; 77 } 78 79 80 89 public ProgressObject distribute(Target [] targetList, InputStream moduleArchive, InputStream deploymentPlan) 90 throws IllegalStateException 91 { 92 return null; 93 } 94 95 96 105 public TargetModuleID [] getAvailableModules(ModuleType moduleType, Target [] targetList) 106 throws TargetException , IllegalStateException 107 { 108 return null; 109 } 110 111 112 117 public Locale getCurrentLocale() 118 { 119 return null; 120 } 121 122 123 128 public DConfigBeanVersionType getDConfigBeanVersion() 129 { 130 return null; 131 } 132 133 134 139 public Locale getDefaultLocale() 140 { 141 return null; 142 } 143 144 145 154 public TargetModuleID [] getNonRunningModules(ModuleType moduleType, Target [] targetList) 155 throws TargetException , IllegalStateException 156 { 157 return null; 158 } 159 160 161 170 public TargetModuleID [] getRunningModules(ModuleType moduleType, Target [] targetList) 171 throws TargetException , IllegalStateException 172 { 173 return null; 174 } 175 176 177 182 public Locale [] getSupportedLocales() 183 { 184 return null; 185 } 186 187 188 194 public Target [] getTargets() 195 throws IllegalStateException 196 { 197 return null; 198 } 199 200 201 208 public boolean isDConfigBeanVersionSupported(DConfigBeanVersionType version) 209 { 210 return false; 211 } 212 213 214 220 public boolean isLocaleSupported(Locale locale) 221 { 222 return false; 223 } 224 225 226 231 public boolean isRedeploySupported() 232 { 233 return false; 234 } 235 236 237 247 public ProgressObject redeploy(TargetModuleID [] moduleIDList, File moduleArchive, File deploymentPlan) 248 throws UnsupportedOperationException , IllegalStateException 249 { 250 return null; 251 } 252 253 254 264 public ProgressObject redeploy(TargetModuleID [] moduleIDList, InputStream moduleArchive, InputStream deploymentPlan) 265 throws UnsupportedOperationException , IllegalStateException 266 { 267 return null; 268 } 269 270 271 272 public void release() { } 273 274 275 282 public void setDConfigBeanVersion(DConfigBeanVersionType version) 283 throws DConfigBeanVersionUnsupportedException { } 284 285 286 292 public void setLocale(Locale locale) 293 throws UnsupportedOperationException { } 294 295 296 303 public ProgressObject start(TargetModuleID [] moduleIDList) 304 throws IllegalStateException 305 { 306 return null; 307 } 308 309 310 317 public ProgressObject stop(TargetModuleID [] moduleIDList) 318 throws IllegalStateException 319 { 320 return null; 321 } 322 323 324 331 public ProgressObject undeploy(TargetModuleID [] moduleIDList) 332 throws IllegalStateException 333 { 334 return null; 335 } 336 } 337 | Popular Tags |