1 7 package test.enterprise.deploy.spi.factories; 8 9 import javax.enterprise.deploy.spi.DeploymentManager ; 10 import javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException ; 11 import javax.enterprise.deploy.spi.factories.DeploymentFactory ; 12 13 import test.enterprise.deploy.spi.AdvancedDeploymentManager; 14 15 21 public class AdvancedDeploymentFactory implements DeploymentFactory 22 { 23 24 public final static String NAME = "AdvancedDeploymentFactory"; 25 26 public final static String URI = "deployer:advanced:"; 27 28 public final static String VERSION = "1.0"; 29 30 31 32 public AdvancedDeploymentFactory() 33 { 34 super(); 35 } 36 37 38 47 public DeploymentManager getDeploymentManager(String uri, String username, String password) 48 throws DeploymentManagerCreationException 49 { 50 return new AdvancedDeploymentManager(uri); 51 } 52 53 54 63 public DeploymentManager getDisconnectedDeploymentManager(String uri) 64 throws DeploymentManagerCreationException 65 { 66 return new AdvancedDeploymentManager(uri); 67 } 68 69 70 75 public String getDisplayName() 76 { 77 return NAME; 78 } 79 80 81 86 public String getProductVersion() 87 { 88 return VERSION; 89 } 90 91 92 98 public boolean handlesURI(String uri) 99 { 100 return uri.startsWith(URI); 101 } 102 } 103 | Popular Tags |