javax.xml.rpc

Class ServiceFactory


  • public abstract class ServiceFactory
    extends Object
    The javax.xml.rpc.ServiceFactory is an abstract class that provides a factory for the creation of instances of the type javax.xml.rpc.Service. This abstract class follows the abstract static factory design pattern. This enables a J2SE based client to create a Service instance in a portable manner without using the constructor of the Service 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 Detail

      • SERVICEFACTORY_PROPERTY

        public static final String SERVICEFACTORY_PROPERTY
        A constant representing the property used to lookup the name of a ServiceFactory implementation class.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ServiceFactory

        protected ServiceFactory()
    • Method Detail

      • newInstance

        public static ServiceFactory newInstance()
                                          throws ServiceException
        Gets an instance of the ServiceFactory

        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 a Service instance.
        Parameters:
        wsdlDocumentLocation - URL for the WSDL document location for the service
        serviceName - 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 a Service 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 provided wsdlDocumentLocation and properties to help locate the generated implementation class. If no such class is present, a ServiceException will be thrown.
        Parameters:
        wsdlDocumentLocation - URL for the WSDL document location for the service or null
        serviceInterface - Service interface
        properties - 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 the wsdlDocumentLocation and serviceName arguments. An implementation may use the provided properties to help locate the generated implementation class. If no such class is present, a ServiceException will be thrown.
        Parameters:
        wsdlDocumentLocation - URL for the WSDL document location for the service or null
        serviceName - Qualified name for the service
        properties - 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

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/xml/rpc/servicefactory.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.