|
SunONE Application Server v8.0 PE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.enterprise.deploy.shared.factories.DeploymentFactoryManager
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.
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
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)
public DeploymentManager getDisconnectedDeploymentManager(java.lang.String uri) throws DeploymentManagerCreationException
uri
- identifier of the disconnected DeploymentManager to
return.
DeploymentDriverException
- occurs if the DeploymentManager
could not be created.
DeploymentManagerCreationException
|
SunONE Application Server v8.0 PE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2003 Sun Microsystems, Inc. All rights reserved.