1 package org.jboss.enterprise.deploy.spi.factories; 2 3 import javax.enterprise.deploy.spi.DeploymentManager ; 4 import javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException ; 5 6 import javax.enterprise.deploy.spi.factories.DeploymentFactory ; 7 import org.jboss.enterprise.deploy.spi.*; 8 9 15 public class JBoss30DeploymentFactory implements DeploymentFactory 16 { 17 18 protected final static String DISPLAY_NAME = "JBoss Deployement Manager"; 19 20 protected final static String PRODUCT_VERSION = "V1.0.0 - JBoss 3.0"; 21 22 protected final static String URL_START = "deployer:jboss30:"; 23 24 25 34 public DeploymentManager getDeploymentManager(String uri, String username, String password) throws DeploymentManagerCreationException 35 { 36 return new JBoss30DeploymentManager(uri, username, password); 37 } 38 39 40 47 public DeploymentManager getDisconnectedDeploymentManager(String uri) throws DeploymentManagerCreationException 48 { 49 return new JBoss30DeploymentManager(uri); 50 } 51 52 53 58 public String getDisplayname() 59 { 60 return DISPLAY_NAME; 61 } 62 63 64 69 public String getProductVersion() 70 { 71 return PRODUCT_VERSION; 72 } 73 74 75 81 public boolean handlesURI(String uri) 82 { 83 if (uri.startsWith(URL_START)) 84 { 85 return true; 86 } 87 return false; 88 } 89 } 90 91 | Popular Tags |