-
public interface DeploymentFactory
The DeploymentFactory interface is a deployment driver for a Java EE plaform product. It returns a DeploymentManager object which represents a connection to a specific Java EE platform product.Each application server vendor must provide an implementation of this class in order for the Java EE Deployment API to work with their product.
The class implementing this interface should have a public no-argument constructor, and it should be stateless (two instances of the class should always behave the same). It is suggested but not required that the class have a static initializer that registers an instance of the class with the DeploymentFactoryManager class.
A connected or disconnected DeploymentManager can be requested. A DeploymentManager that runs connected to the platform can provide access to Java EE resources. A DeploymentManager that runs disconnected only provides module deployment configuration support.
- See Also:
DeploymentFactoryManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description DeploymentManager
getDeploymentManager(String uri, String username, String password)
Return a connected DeploymentManager instance.DeploymentManager
getDisconnectedDeploymentManager(String uri)
Return a disconnected DeploymentManager instance.String
getDisplayName()
Provide a string with the name of this vendor's DeploymentManager.String
getProductVersion()
Provide a string identifying version of this vendor's DeploymentManager.boolean
handlesURI(String uri)
Tests whether this factory can create a DeploymentManager object based on the specificed URI.
-
-
-
Method Detail
-
handlesURI
boolean handlesURI(String uri)
Tests whether this factory can create a DeploymentManager object based on the specificed URI. This does not indicate whether such an attempt will be successful, only whether the factory can handle the uri.- Parameters:
uri
- The uri to check- Returns:
- true if the factory can handle the uri.
-
getDeploymentManager
DeploymentManager getDeploymentManager(String uri, String username, String password) throws DeploymentManagerCreationException
Return a connected DeploymentManager instance.- Parameters:
uri
- The URI that specifies the connection parametersusername
- 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 a DeploymentManager could not be returned (server down, unable to authenticate, etc).
-
getDisconnectedDeploymentManager
DeploymentManager getDisconnectedDeploymentManager(String uri) throws DeploymentManagerCreationException
Return a disconnected DeploymentManager instance.- Parameters:
uri
- the uri of the DeploymentManager to return.- Returns:
- A DeploymentManager disconnected instance.
- Throws:
DeploymentManagerCreationException
- occurs if the DeploymentManager could not be created.
-
getDisplayName
String getDisplayName()
Provide a string with the name of this vendor's DeploymentManager.- Returns:
- the name of the vendor's DeploymentManager.
-
getProductVersion
String getProductVersion()
Provide a string identifying version of this vendor's DeploymentManager.- Returns:
- the name of the vendor's DeploymentManager.
-
-
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/spi/factories/DeploymentFactory.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.