java.lang.Object
javax.enterprise.deploy.shared.factories.DeploymentFactoryManager
- public final class DeploymentFactoryManager
- extends java.lang.Object
The DeploymentFactoryManager class is a central registry for J2EE
DeploymentFactory objects. The DeploymentFactoryManager retains references
to DeploymentFactory objects loaded by a tool. A DeploymentFactory object
provides a reference to a DeploymentManager. The DeploymentFactoryManager
has been implemented as a singleton. A tool gets a reference to the
DeploymentFactoryManager via the getInstance method. The
DeploymentFactoryManager can return two types of DeploymentManagers, a
connected DeploymentManager and a disconnected DeploymentManager. The
connected DeploymentManager provides access to any product resources that
may be required for configurations and deployment. The method to retrieve a
connected DeploymentManager is getDeploymentManager. This method provides
parameters for user name and password that the product may require for user
authentication. A disconnected DeploymentManager does not provide access to
a running J2EE product. The method to retrieve a disconnected
DeploymentManager is getDisconnectedDeploymentManager. A disconnected
DeploymentManager does not need user authentication information.
- Version:
- $Rev: 46019 $ $Date: 2004-09-14 02:56:06 -0700 (Tue, 14 Sep 2004) $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
private static DeploymentFactoryManager instance
deploymentFactories
private java.util.ArrayList deploymentFactories
DeploymentFactoryManager
private DeploymentFactoryManager()
getInstance
public static DeploymentFactoryManager getInstance()
- Retrieve the Singleton DeploymentFactoryManager
getDeploymentFactories
public javax.enterprise.deploy.spi.factories.DeploymentFactory[] getDeploymentFactories()
- Retrieve the lists of currently registered DeploymentFactories.
getDeploymentManager
public javax.enterprise.deploy.spi.DeploymentManager getDeploymentManager(java.lang.String uri,
java.lang.String username,
java.lang.String password)
throws javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException
- Retrieves a DeploymentManager instance to use for deployment. The caller
provides a URI and optional username and password, and all registered
DeploymentFactories will be checked. The first one to understand the URI
provided will attempt to initiate a server connection and return a ready
DeploymentManager instance.
getDisconnectedDeploymentManager
public javax.enterprise.deploy.spi.DeploymentManager getDisconnectedDeploymentManager(java.lang.String uri)
throws javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException
- Return a disconnected DeploymentManager instance.
registerDeploymentFactory
public void registerDeploymentFactory(javax.enterprise.deploy.spi.factories.DeploymentFactory factory)
- Registers a DeploymentFactory so it will be able to handle requests.