- java.lang.Object
-
- javax.enterprise.deploy.shared.factories.DeploymentFactoryManager
-
public final class DeploymentFactoryManager extends Object
The DeploymentFactoryManager class is a central registry for Java EE 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 Java EE product. The method to retrieve a disconnected DeploymentManager is getDisconnectedDeploymentManager. A disconnected DeploymentManager does not need user authentication information.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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 DeploymentFactoryManagervoid
registerDeploymentFactory(DeploymentFactory factory)
Registers a DeploymentFactory so it will be able to handle requests.
-
-
-
Method Detail
-
getInstance
public static DeploymentFactoryManager getInstance()
Retrieve the Singleton DeploymentFactoryManager- Returns:
- DeploymentFactoryManager instance
-
getDeploymentFactories
public DeploymentFactory[] getDeploymentFactories()
Retrieve the lists of currently registered DeploymentFactories.- Returns:
- the list of DeploymentFactory objects or an empty array if there are none.
-
getDeploymentManager
public DeploymentManager getDeploymentManager(String uri, String username, String password) throws 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.- Parameters:
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).- 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.).
-
registerDeploymentFactory
public void registerDeploymentFactory(DeploymentFactory factory)
Registers a DeploymentFactory so it will be able to handle requests.
-
getDisconnectedDeploymentManager
public DeploymentManager getDisconnectedDeploymentManager(String uri) throws DeploymentManagerCreationException
Return a disconnected DeploymentManager instance.- Parameters:
uri
- identifier of the disconnected DeploymentManager to return.- Returns:
- A DeploymentManager instance.
- Throws:
DeploymentDriverException
- occurs if the DeploymentManager could not be created.DeploymentManagerCreationException
-
-
Deutsche Übersetzung
Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.
Vielen Dank im Voraus.
Dokument erstellt 11/06/2005, zuletzt geändert 18/08/2025
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-javaee-rf-javax/enterprise/deploy/shared/factories/deploymentfactorymanager.html
Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.
Referenzen
Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor dieser Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.