[Ejtools-cvs] libraries/j2ee.deployment/src/test/test/enterprise/deploy/spi/factories AdvancedDeploy
Brought to you by:
letiemble
From: <let...@us...> - 2003-12-14 09:46:49
|
Update of /cvsroot/ejtools/libraries/j2ee.deployment/src/test/test/enterprise/deploy/spi/factories In directory sc8-pr-cvs1:/tmp/cvs-serv4692/src/test/test/enterprise/deploy/spi/factories Added Files: AdvancedDeploymentFactory.java BasicDeploymentFactory.java Log Message: Add up-to-date implementation for the JSR 88. No need for the Sun one. --- NEW FILE: AdvancedDeploymentFactory.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package test.enterprise.deploy.spi.factories; import javax.enterprise.deploy.spi.DeploymentManager; import javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException; import javax.enterprise.deploy.spi.factories.DeploymentFactory; import test.enterprise.deploy.spi.AdvancedDeploymentManager; /** * Description of the Class * * @author Laurent Etiemble * @version $Revision: 1.1 $ */ public class AdvancedDeploymentFactory implements DeploymentFactory { /** Description of the Field */ public final static String NAME = "AdvancedDeploymentFactory"; /** Description of the Field */ public final static String URI = "deployer:advanced:"; /** Description of the Field */ public final static String VERSION = "1.0"; /** Constructor for the BasicDeploymentFactory object */ public AdvancedDeploymentFactory() { super(); } /** * Gets the deploymentManager attribute of the BasicDeploymentFactory object * * @param uri Description of the Parameter * @param username Description of the Parameter * @param password Description of the Parameter * @return The deploymentManager value * @exception DeploymentManagerCreationException Description of the Exception */ public DeploymentManager getDeploymentManager(String uri, String username, String password) throws DeploymentManagerCreationException { return new AdvancedDeploymentManager(uri); } /** * Gets the disconnectedDeploymentManager attribute of the BasicDeploymentFactory * object * * @param uri Description of the Parameter * @return The disconnectedDeploymentManager * value * @exception DeploymentManagerCreationException Description of the Exception */ public DeploymentManager getDisconnectedDeploymentManager(String uri) throws DeploymentManagerCreationException { return new AdvancedDeploymentManager(uri); } /** * Gets the displayName attribute of the BasicDeploymentFactory object * * @return The displayName value */ public String getDisplayName() { return NAME; } /** * Gets the productVersion attribute of the BasicDeploymentFactory object * * @return The productVersion value */ public String getProductVersion() { return VERSION; } /** * Description of the Method * * @param uri Description of the Parameter * @return Description of the Return Value */ public boolean handlesURI(String uri) { return uri.startsWith(URI); } } --- NEW FILE: BasicDeploymentFactory.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package test.enterprise.deploy.spi.factories; import javax.enterprise.deploy.spi.DeploymentManager; import javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException; import javax.enterprise.deploy.spi.factories.DeploymentFactory; import test.enterprise.deploy.spi.BasicDeploymentManager; /** * Description of the Class * * @author Laurent Etiemble * @version $Revision: 1.1 $ */ public class BasicDeploymentFactory implements DeploymentFactory { /** Description of the Field */ public final static String NAME = "BasicDeploymentFactory"; /** Description of the Field */ public final static String URI = "deployer:basic:"; /** Description of the Field */ public final static String VERSION = "1.0"; /** Constructor for the BasicDeploymentFactory object */ public BasicDeploymentFactory() { super(); } /** * Gets the deploymentManager attribute of the BasicDeploymentFactory object * * @param uri Description of the Parameter * @param username Description of the Parameter * @param password Description of the Parameter * @return The deploymentManager value * @exception DeploymentManagerCreationException Description of the Exception */ public DeploymentManager getDeploymentManager(String uri, String username, String password) throws DeploymentManagerCreationException { return new BasicDeploymentManager(uri); } /** * Gets the disconnectedDeploymentManager attribute of the BasicDeploymentFactory * object * * @param uri Description of the Parameter * @return The disconnectedDeploymentManager * value * @exception DeploymentManagerCreationException Description of the Exception */ public DeploymentManager getDisconnectedDeploymentManager(String uri) throws DeploymentManagerCreationException { return new BasicDeploymentManager(uri); } /** * Gets the displayName attribute of the BasicDeploymentFactory object * * @return The displayName value */ public String getDisplayName() { return NAME; } /** * Gets the productVersion attribute of the BasicDeploymentFactory object * * @return The productVersion value */ public String getProductVersion() { return VERSION; } /** * Description of the Method * * @param uri Description of the Parameter * @return Description of the Return Value */ public boolean handlesURI(String uri) { return uri.startsWith(URI); } } |