KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > enterprise > deploy > spi > factories > JBoss30DeploymentFactory


1 package org.jboss.enterprise.deploy.spi.factories;
2
3 import javax.enterprise.deploy.spi.DeploymentManager JavaDoc;
4 import javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException JavaDoc;
5
6 import javax.enterprise.deploy.spi.factories.DeploymentFactory JavaDoc;
7 import org.jboss.enterprise.deploy.spi.*;
8
9 /**
10  * Description of the Class
11  *
12  * @author laurent
13  * @created 23 mars 2002
14  */

15 public class JBoss30DeploymentFactory implements DeploymentFactory JavaDoc
16 {
17    /** Description of the Field */
18    protected final static String JavaDoc DISPLAY_NAME = "JBoss Deployement Manager";
19    /** Description of the Field */
20    protected final static String JavaDoc PRODUCT_VERSION = "V1.0.0 - JBoss 3.0";
21    /** Description of the Field */
22    protected final static String JavaDoc URL_START = "deployer:jboss30:";
23
24
25    /**
26     * Getter for the deploymentManager attribute
27     *
28     * @param uri Description of Parameter
29     * @param username Description of Parameter
30     * @param password Description of Parameter
31     * @return The value
32     * @exception DeploymentManagerCreationException Description of Exception
33     */

34    public DeploymentManager JavaDoc getDeploymentManager(String JavaDoc uri, String JavaDoc username, String JavaDoc password) throws DeploymentManagerCreationException JavaDoc
35    {
36       return new JBoss30DeploymentManager(uri, username, password);
37    }
38
39
40    /**
41     * Getter for the disconnectedDeploymentManager attribute
42     *
43     * @param uri Description of Parameter
44     * @return The value
45     * @exception DeploymentManagerCreationException Description of Exception
46     */

47    public DeploymentManager JavaDoc getDisconnectedDeploymentManager(String JavaDoc uri) throws DeploymentManagerCreationException JavaDoc
48    {
49       return new JBoss30DeploymentManager(uri);
50    }
51
52
53    /**
54     * Getter for the displayname attribute
55     *
56     * @return The value
57     */

58    public String JavaDoc getDisplayname()
59    {
60       return DISPLAY_NAME;
61    }
62
63
64    /**
65     * Getter for the productVersion attribute
66     *
67     * @return The value
68     */

69    public String JavaDoc getProductVersion()
70    {
71       return PRODUCT_VERSION;
72    }
73
74
75    /**
76     * Description of the Method
77     *
78     * @param uri Description of Parameter
79     * @return Description of the Returned Value
80     */

81    public boolean handlesURI(String JavaDoc uri)
82    {
83       if (uri.startsWith(URL_START))
84       {
85          return true;
86       }
87       return false;
88    }
89 }
90
91
Popular Tags