public final class DeploymentFactoryManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
DeploymentFactory[] |
getDeploymentFactories()
Retrieve the lists of currently registered DeploymentFactories.
|
DeploymentManager |
getDeploymentManager(java.lang.String uri,
java.lang.String username,
java.lang.String password)
Retrieves a DeploymentManager instance to use for deployment.
|
DeploymentManager |
getDisconnectedDeploymentManager(java.lang.String uri)
Return a disconnected DeploymentManager instance.
|
static DeploymentFactoryManager |
getInstance()
Retrieve the Singleton DeploymentFactoryManager
|
void |
registerDeploymentFactory(DeploymentFactory factory)
Registers a DeploymentFactory so it will be able to handle
requests.
|
public static DeploymentFactoryManager getInstance()
public DeploymentFactory[] getDeploymentFactories()
public DeploymentManager getDeploymentManager(java.lang.String uri, java.lang.String username, java.lang.String password) throws DeploymentManagerCreationException
uri
- The uri to checkusername
- An optional username (may be null if
no authentication is required for this platform).password
- An optional password (may be null if
no authentication is required for this platform).DeploymentManagerCreationException
- Occurs when the factory appropriate to the specified URI
was unable to initialize a DeploymentManager instance
(server down, unable to authenticate, etc.).public void registerDeploymentFactory(DeploymentFactory factory)
factory
- the deployment factorypublic DeploymentManager getDisconnectedDeploymentManager(java.lang.String uri) throws DeploymentManagerCreationException
uri
- identifier of the disconnected DeploymentManager to
return.DeploymentManagerCreationException
- occurs if the DeploymentManager
could not be created.