javax.enterprise.deploy.shared.factories
public final class DeploymentFactoryManager extends Object
Method Summary | |
---|---|
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. |
Returns: the list of DeploymentFactory objects or an empty array if there are none.
Parameters: uri The uri to check username 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).
Returns: A ready DeploymentManager instance.
Throws: DeploymentManagerCreationException Occurs when the factory appropriate to the specified URI was unable to initialize a DeploymentManager instance (server down, unable to authenticate, etc.).
Parameters: uri identifier of the disconnected DeploymentManager to return.
Returns: A DeploymentManager instance.
Throws: DeploymentManagerCreationException occurs if the DeploymentManager could not be created.
Returns: DeploymentFactoryManager instance