public final class DeploymentFactoryManager extends Object
Modifier and Type | Method and Description |
---|---|
DeploymentFactory[] |
getDeploymentFactories()
Retrieve the lists of currently registered DeploymentFactories.
|
DeploymentManager |
getDeploymentManager(String uri,
String username,
String password)
Retrieves a DeploymentManager instance to use for deployment.
|
DeploymentManager |
getDisconnectedDeploymentManager(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(String uri, String username, 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)
public DeploymentManager getDisconnectedDeploymentManager(String uri) throws DeploymentManagerCreationException
uri
- identifier of the disconnected DeploymentManager to
return.DeploymentDriverException
- occurs if the DeploymentManager
could not be created.DeploymentManagerCreationException
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.