Each application server vendor must provide an implementation of this class in order for the Java EE Deployment API to work with their product.
The class implementing this interface should have a public no-argument constructor, and it should be stateless (two instances of the class should always behave the same). It is suggested but not required that the class have a static initializer that registers an instance of the class with the DeploymentFactoryManager class.
A connected or disconnected DeploymentManager can be requested. A DeploymentManager that runs connected to the platform can provide access to Java EE resources. A DeploymentManager that runs disconnected only provides module deployment configuration support.
javax.enterprise.deploy.shared.factories.DeploymentFactoryManager
| Modifier and Type | Method and Description |
|---|---|
| public DeploymentManager | Returns: A ready DeploymentManager instance.The URI that specifies the connection parameters uri, String An optional username (may be null if
no authentication is required for this platform). username, String An optional password (may be null if
no authentication is required for this platform). password)Return a connected DeploymentManager instance. |
| public DeploymentManager | Returns: A DeploymentManager disconnected instance.the uri of the DeploymentManager to return. uri)Return a disconnected DeploymentManager instance. |
| public String | Returns: the name of the vendor's DeploymentManager.Provide a string with the name of this vendor's DeploymentManager. |
| public String | Returns: the name of the vendor's DeploymentManager.Provide a string identifying version of this vendor's DeploymentManager. |
| public boolean | Returns: true if the factory can handle the uri.The uri to check uri)Tests whether this factory can create a DeploymentManager object based on the specificed URI. |
| getDeploymentManager | back to summary |
|---|---|
| public DeploymentManager getDeploymentManager(String uri, String username, String password) throws DeploymentManagerCreationException Return a connected DeploymentManager instance.
| |
| getDisconnectedDeploymentManager | back to summary |
|---|---|
| public DeploymentManager getDisconnectedDeploymentManager(String uri) throws DeploymentManagerCreationException Return a disconnected DeploymentManager instance.
| |
| getDisplayName | back to summary |
|---|---|
| public String getDisplayName() Provide a string with the name of this vendor's DeploymentManager.
| |
| getProductVersion | back to summary |
|---|---|
| public String getProductVersion() Provide a string identifying version of this vendor's DeploymentManager.
| |
| handlesURI | back to summary |
|---|---|
| public boolean handlesURI(String uri) Tests whether this factory can create a DeploymentManager object based on the specificed URI. This does not indicate whether such an attempt will be successful, only whether the factory can handle the uri.
| |