Thread: [Ejtools-cvs] libraries/j2ee.deployment/src/test/test/enterprise/deploy/spi AdvancedDeploymentManage
Brought to you by:
letiemble
From: <let...@us...> - 2003-12-14 10:42:06
|
Update of /cvsroot/ejtools/libraries/j2ee.deployment/src/test/test/enterprise/deploy/spi In directory sc8-pr-cvs1:/tmp/cvs-serv4692/src/test/test/enterprise/deploy/spi Added Files: AdvancedDeploymentManager.java BasicDeploymentManager.java Log Message: Add up-to-date implementation for the JSR 88. No need for the Sun one. --- NEW FILE: AdvancedDeploymentManager.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package test.enterprise.deploy.spi; import java.io.File; import java.io.InputStream; import java.util.Locale; import javax.enterprise.deploy.model.DeployableObject; import javax.enterprise.deploy.shared.DConfigBeanVersionType; import javax.enterprise.deploy.shared.ModuleType; import javax.enterprise.deploy.spi.DeploymentConfiguration; import javax.enterprise.deploy.spi.DeploymentManager; import javax.enterprise.deploy.spi.Target; import javax.enterprise.deploy.spi.TargetModuleID; import javax.enterprise.deploy.spi.exceptions.DConfigBeanVersionUnsupportedException; import javax.enterprise.deploy.spi.exceptions.InvalidModuleException; import javax.enterprise.deploy.spi.exceptions.TargetException; import javax.enterprise.deploy.spi.status.ProgressObject; /** * Description of the Class * * @author Laurent Etiemble * @version $Revision: 1.1 $ */ public class AdvancedDeploymentManager implements DeploymentManager { private boolean connected = true; private String uri; /** * Constructor for the BasicDeploymentManager object * * @param uri Description of the Parameter */ public AdvancedDeploymentManager(String uri) { this.uri = uri; } /** * Description of the Method * * @param dObj Description of the Parameter * @return Description of the Return Value * @exception InvalidModuleException Description of the Exception */ public DeploymentConfiguration createConfiguration(DeployableObject dObj) throws InvalidModuleException { return null; } /** * Description of the Method * * @param targetList Description of the Parameter * @param moduleArchive Description of the Parameter * @param deploymentPlan Description of the Parameter * @return Description of the Return Value * @exception IllegalStateException Description of the Exception */ public ProgressObject distribute(Target[] targetList, File moduleArchive, File deploymentPlan) throws IllegalStateException { return null; } /** * Description of the Method * * @param targetList Description of the Parameter * @param moduleArchive Description of the Parameter * @param deploymentPlan Description of the Parameter * @return Description of the Return Value * @exception IllegalStateException Description of the Exception */ public ProgressObject distribute(Target[] targetList, InputStream moduleArchive, InputStream deploymentPlan) throws IllegalStateException { return null; } /** * Gets the availableModules attribute of the BasicDeploymentManager object * * @param moduleType Description of the Parameter * @param targetList Description of the Parameter * @return The availableModules value * @exception TargetException Description of the Exception * @exception IllegalStateException Description of the Exception */ public TargetModuleID[] getAvailableModules(ModuleType moduleType, Target[] targetList) throws TargetException, IllegalStateException { return null; } /** * Gets the currentLocale attribute of the BasicDeploymentManager object * * @return The currentLocale value */ public Locale getCurrentLocale() { return null; } /** * Gets the dConfigBeanVersion attribute of the BasicDeploymentManager object * * @return The dConfigBeanVersion value */ public DConfigBeanVersionType getDConfigBeanVersion() { return null; } /** * Gets the defaultLocale attribute of the BasicDeploymentManager object * * @return The defaultLocale value */ public Locale getDefaultLocale() { return null; } /** * Gets the nonRunningModules attribute of the BasicDeploymentManager object * * @param moduleType Description of the Parameter * @param targetList Description of the Parameter * @return The nonRunningModules value * @exception TargetException Description of the Exception * @exception IllegalStateException Description of the Exception */ public TargetModuleID[] getNonRunningModules(ModuleType moduleType, Target[] targetList) throws TargetException, IllegalStateException { return null; } /** * Gets the runningModules attribute of the BasicDeploymentManager object * * @param moduleType Description of the Parameter * @param targetList Description of the Parameter * @return The runningModules value * @exception TargetException Description of the Exception * @exception IllegalStateException Description of the Exception */ public TargetModuleID[] getRunningModules(ModuleType moduleType, Target[] targetList) throws TargetException, IllegalStateException { return null; } /** * Gets the supportedLocales attribute of the BasicDeploymentManager object * * @return The supportedLocales value */ public Locale[] getSupportedLocales() { return null; } /** * Gets the targets attribute of the BasicDeploymentManager object * * @return The targets value * @exception IllegalStateException Description of the Exception */ public Target[] getTargets() throws IllegalStateException { return null; } /** * Gets the dConfigBeanVersionSupported attribute of the BasicDeploymentManager * object * * @param version Description of the Parameter * @return The dConfigBeanVersionSupported value */ public boolean isDConfigBeanVersionSupported(DConfigBeanVersionType version) { return false; } /** * Gets the localeSupported attribute of the BasicDeploymentManager object * * @param locale Description of the Parameter * @return The localeSupported value */ public boolean isLocaleSupported(Locale locale) { return false; } /** * Gets the redeploySupported attribute of the BasicDeploymentManager object * * @return The redeploySupported value */ public boolean isRedeploySupported() { return false; } /** * Description of the Method * * @param moduleIDList Description of the Parameter * @param moduleArchive Description of the Parameter * @param deploymentPlan Description of the Parameter * @return Description of the Return Value * @exception UnsupportedOperationException Description of the Exception * @exception IllegalStateException Description of the Exception */ public ProgressObject redeploy(TargetModuleID[] moduleIDList, File moduleArchive, File deploymentPlan) throws UnsupportedOperationException, IllegalStateException { return null; } /** * Description of the Method * * @param moduleIDList Description of the Parameter * @param moduleArchive Description of the Parameter * @param deploymentPlan Description of the Parameter * @return Description of the Return Value * @exception UnsupportedOperationException Description of the Exception * @exception IllegalStateException Description of the Exception */ public ProgressObject redeploy(TargetModuleID[] moduleIDList, InputStream moduleArchive, InputStream deploymentPlan) throws UnsupportedOperationException, IllegalStateException { return null; } /** Description of the Method */ public void release() { } /** * Sets the dConfigBeanVersion attribute of the BasicDeploymentManager object * * @param version The new dConfigBeanVersion * value * @exception DConfigBeanVersionUnsupportedException Description of the Exception */ public void setDConfigBeanVersion(DConfigBeanVersionType version) throws DConfigBeanVersionUnsupportedException { } /** * Sets the locale attribute of the BasicDeploymentManager object * * @param locale The new locale value * @exception UnsupportedOperationException Description of the Exception */ public void setLocale(Locale locale) throws UnsupportedOperationException { } /** * Description of the Method * * @param moduleIDList Description of the Parameter * @return Description of the Return Value * @exception IllegalStateException Description of the Exception */ public ProgressObject start(TargetModuleID[] moduleIDList) throws IllegalStateException { return null; } /** * Description of the Method * * @param moduleIDList Description of the Parameter * @return Description of the Return Value * @exception IllegalStateException Description of the Exception */ public ProgressObject stop(TargetModuleID[] moduleIDList) throws IllegalStateException { return null; } /** * Description of the Method * * @param moduleIDList Description of the Parameter * @return Description of the Return Value * @exception IllegalStateException Description of the Exception */ public ProgressObject undeploy(TargetModuleID[] moduleIDList) throws IllegalStateException { return null; } } --- NEW FILE: BasicDeploymentManager.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package test.enterprise.deploy.spi; import java.io.File; import java.io.InputStream; import java.util.Locale; import javax.enterprise.deploy.model.DeployableObject; import javax.enterprise.deploy.shared.DConfigBeanVersionType; import javax.enterprise.deploy.shared.ModuleType; import javax.enterprise.deploy.spi.DeploymentConfiguration; import javax.enterprise.deploy.spi.DeploymentManager; import javax.enterprise.deploy.spi.Target; import javax.enterprise.deploy.spi.TargetModuleID; import javax.enterprise.deploy.spi.exceptions.DConfigBeanVersionUnsupportedException; import javax.enterprise.deploy.spi.exceptions.InvalidModuleException; import javax.enterprise.deploy.spi.exceptions.TargetException; import javax.enterprise.deploy.spi.status.ProgressObject; /** * Description of the Class * * @author Laurent Etiemble * @version $Revision: 1.1 $ */ public class BasicDeploymentManager implements DeploymentManager { private boolean connected = false; private String uri; /** * Constructor for the BasicDeploymentManager object * * @param uri Description of the Parameter */ public BasicDeploymentManager(String uri) { this.uri = uri; } /** * Description of the Method * * @param dObj Description of the Parameter * @return Description of the Return Value * @exception InvalidModuleException Description of the Exception */ public DeploymentConfiguration createConfiguration(DeployableObject dObj) throws InvalidModuleException { return null; } /** * Description of the Method * * @param targetList Description of the Parameter * @param moduleArchive Description of the Parameter * @param deploymentPlan Description of the Parameter * @return Description of the Return Value * @exception IllegalStateException Description of the Exception */ public ProgressObject distribute(Target[] targetList, File moduleArchive, File deploymentPlan) throws IllegalStateException { return null; } /** * Description of the Method * * @param targetList Description of the Parameter * @param moduleArchive Description of the Parameter * @param deploymentPlan Description of the Parameter * @return Description of the Return Value * @exception IllegalStateException Description of the Exception */ public ProgressObject distribute(Target[] targetList, InputStream moduleArchive, InputStream deploymentPlan) throws IllegalStateException { return null; } /** * Gets the availableModules attribute of the BasicDeploymentManager object * * @param moduleType Description of the Parameter * @param targetList Description of the Parameter * @return The availableModules value * @exception TargetException Description of the Exception * @exception IllegalStateException Description of the Exception */ public TargetModuleID[] getAvailableModules(ModuleType moduleType, Target[] targetList) throws TargetException, IllegalStateException { return null; } /** * Gets the currentLocale attribute of the BasicDeploymentManager object * * @return The currentLocale value */ public Locale getCurrentLocale() { return null; } /** * Gets the dConfigBeanVersion attribute of the BasicDeploymentManager object * * @return The dConfigBeanVersion value */ public DConfigBeanVersionType getDConfigBeanVersion() { return null; } /** * Gets the defaultLocale attribute of the BasicDeploymentManager object * * @return The defaultLocale value */ public Locale getDefaultLocale() { return null; } /** * Gets the nonRunningModules attribute of the BasicDeploymentManager object * * @param moduleType Description of the Parameter * @param targetList Description of the Parameter * @return The nonRunningModules value * @exception TargetException Description of the Exception * @exception IllegalStateException Description of the Exception */ public TargetModuleID[] getNonRunningModules(ModuleType moduleType, Target[] targetList) throws TargetException, IllegalStateException { return null; } /** * Gets the runningModules attribute of the BasicDeploymentManager object * * @param moduleType Description of the Parameter * @param targetList Description of the Parameter * @return The runningModules value * @exception TargetException Description of the Exception * @exception IllegalStateException Description of the Exception */ public TargetModuleID[] getRunningModules(ModuleType moduleType, Target[] targetList) throws TargetException, IllegalStateException { return null; } /** * Gets the supportedLocales attribute of the BasicDeploymentManager object * * @return The supportedLocales value */ public Locale[] getSupportedLocales() { return null; } /** * Gets the targets attribute of the BasicDeploymentManager object * * @return The targets value * @exception IllegalStateException Description of the Exception */ public Target[] getTargets() throws IllegalStateException { return null; } /** * Gets the dConfigBeanVersionSupported attribute of the BasicDeploymentManager * object * * @param version Description of the Parameter * @return The dConfigBeanVersionSupported value */ public boolean isDConfigBeanVersionSupported(DConfigBeanVersionType version) { return false; } /** * Gets the localeSupported attribute of the BasicDeploymentManager object * * @param locale Description of the Parameter * @return The localeSupported value */ public boolean isLocaleSupported(Locale locale) { return false; } /** * Gets the redeploySupported attribute of the BasicDeploymentManager object * * @return The redeploySupported value */ public boolean isRedeploySupported() { return false; } /** * Description of the Method * * @param moduleIDList Description of the Parameter * @param moduleArchive Description of the Parameter * @param deploymentPlan Description of the Parameter * @return Description of the Return Value * @exception UnsupportedOperationException Description of the Exception * @exception IllegalStateException Description of the Exception */ public ProgressObject redeploy(TargetModuleID[] moduleIDList, File moduleArchive, File deploymentPlan) throws UnsupportedOperationException, IllegalStateException { return null; } /** * Description of the Method * * @param moduleIDList Description of the Parameter * @param moduleArchive Description of the Parameter * @param deploymentPlan Description of the Parameter * @return Description of the Return Value * @exception UnsupportedOperationException Description of the Exception * @exception IllegalStateException Description of the Exception */ public ProgressObject redeploy(TargetModuleID[] moduleIDList, InputStream moduleArchive, InputStream deploymentPlan) throws UnsupportedOperationException, IllegalStateException { return null; } /** Description of the Method */ public void release() { } /** * Sets the dConfigBeanVersion attribute of the BasicDeploymentManager object * * @param version The new dConfigBeanVersion * value * @exception DConfigBeanVersionUnsupportedException Description of the Exception */ public void setDConfigBeanVersion(DConfigBeanVersionType version) throws DConfigBeanVersionUnsupportedException { } /** * Sets the locale attribute of the BasicDeploymentManager object * * @param locale The new locale value * @exception UnsupportedOperationException Description of the Exception */ public void setLocale(Locale locale) throws UnsupportedOperationException { } /** * Description of the Method * * @param moduleIDList Description of the Parameter * @return Description of the Return Value * @exception IllegalStateException Description of the Exception */ public ProgressObject start(TargetModuleID[] moduleIDList) throws IllegalStateException { return null; } /** * Description of the Method * * @param moduleIDList Description of the Parameter * @return Description of the Return Value * @exception IllegalStateException Description of the Exception */ public ProgressObject stop(TargetModuleID[] moduleIDList) throws IllegalStateException { return null; } /** * Description of the Method * * @param moduleIDList Description of the Parameter * @return Description of the Return Value * @exception IllegalStateException Description of the Exception */ public ProgressObject undeploy(TargetModuleID[] moduleIDList) throws IllegalStateException { return null; } } |