- java.lang.Object
-
- javax.xml.rpc.ServiceFactory
-
public abstract class ServiceFactory extends Object
Thejavax.xml.rpc.ServiceFactory
is an abstract class that provides a factory for the creation of instances of the typejavax.xml.rpc.Service
. This abstract class follows the abstract static factory design pattern. This enables a J2SE based client to create aService instance
in a portable manner without using the constructor of theService
implementation class.The ServiceFactory implementation class is set using the system property
SERVICEFACTORY_PROPERTY
.- Version:
- 1.1
- Author:
- Rahul Sharma, Roberto Chinnici
- See Also:
Service
-
-
Field Summary
Fields Modifier and Type Field and Description static String
SERVICEFACTORY_PROPERTY
A constant representing the property used to lookup the name of aServiceFactory
implementation class.
-
Constructor Summary
Constructors Modifier Constructor and Description protected
ServiceFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract Service
createService(QName serviceName)
Create aService
instance.abstract Service
createService(URL wsdlDocumentLocation, QName serviceName)
Create aService
instance.abstract Service
loadService(Class serviceInterface)
Create an instance of the generated service implementation class for a given service interface, if available.abstract Service
loadService(URL wsdlDocumentLocation, Class serviceInterface, Properties properties)
Create an instance of the generated service implementation class for a given service interface, if available.abstract Service
loadService(URL wsdlDocumentLocation, QName serviceName, Properties properties)
Create an instance of the generated service implementation class for a given service, if available.static ServiceFactory
newInstance()
Gets an instance of theServiceFactory
-
-
-
Field Detail
-
SERVICEFACTORY_PROPERTY
public static final String SERVICEFACTORY_PROPERTY
A constant representing the property used to lookup the name of aServiceFactory
implementation class.- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
public static ServiceFactory newInstance() throws ServiceException
Gets an instance of theServiceFactory
Only one copy of a factory exists and is returned to the application each time this method is called.
The implementation class to be used can be overridden by setting the javax.xml.rpc.ServiceFactory system property.
- Throws:
ServiceException
-
createService
public abstract Service createService(URL wsdlDocumentLocation, QName serviceName) throws ServiceException
Create aService
instance.- Parameters:
wsdlDocumentLocation
- URL for the WSDL document location for the serviceserviceName
- QName for the service- Throws:
ServiceException
- If any error in creation of the specified service
-
createService
public abstract Service createService(QName serviceName) throws ServiceException
Create aService
instance.- Parameters:
serviceName
- QName for the service- Throws:
ServiceException
- If any error in creation of the specified service
-
loadService
public abstract Service loadService(Class serviceInterface) throws ServiceException
Create an instance of the generated service implementation class for a given service interface, if available.- Parameters:
serviceInterface
- Service interface- Throws:
ServiceException
- If there is any error while creating the specified service, including the case where a generated service implementation class cannot be located
-
loadService
public abstract Service loadService(URL wsdlDocumentLocation, Class serviceInterface, Properties properties) throws ServiceException
Create an instance of the generated service implementation class for a given service interface, if available. An implementation may use the providedwsdlDocumentLocation
andproperties
to help locate the generated implementation class. If no such class is present, aServiceException
will be thrown.- Parameters:
wsdlDocumentLocation
- URL for the WSDL document location for the service or nullserviceInterface
- Service interfaceproperties
- A set of implementation-specific properties to help locate the generated service implementation class- Throws:
ServiceException
- If there is any error while creating the specified service, including the case where a generated service implementation class cannot be located
-
loadService
public abstract Service loadService(URL wsdlDocumentLocation, QName serviceName, Properties properties) throws ServiceException
Create an instance of the generated service implementation class for a given service, if available. The service is uniquely identified by thewsdlDocumentLocation
andserviceName
arguments. An implementation may use the providedproperties
to help locate the generated implementation class. If no such class is present, aServiceException
will be thrown.- Parameters:
wsdlDocumentLocation
- URL for the WSDL document location for the service or nullserviceName
- Qualified name for the serviceproperties
- A set of implementation-specific properties to help locate the generated service implementation class- Throws:
ServiceException
- If there is any error while creating the specified service, including the case where a generated service implementation class cannot be located
-
-
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/xml/rpc/ServiceFactory.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.