Save This Page
Home » xml-commons-external-1.4.01-src » javax » xml » rpc » [javadoc | source]
javax.xml.rpc
abstract public class: ServiceFactory [javadoc | source]
java.lang.Object
   javax.xml.rpc.ServiceFactory
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 javax.xml.rpc.ServiceFactory System property.
Field Summary
public static final  String SERVICEFACTORY_PROPERTY    A constant representing the property used to lookup the name of a ServiceFactory implementation class. 
Constructor:
 protected ServiceFactory() 
Method from javax.xml.rpc.ServiceFactory Summary:
createService,   createService,   loadService,   loadService,   loadService,   newInstance
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.xml.rpc.ServiceFactory Detail:
 abstract public Service createService(QName serviceName) throws ServiceException
    Create a Service instance.
 abstract public Service createService(URL wsdlDocumentLocation,
    QName serviceName) throws ServiceException
    Create a Service instance.
 abstract public Service loadService(Class serviceInterface) throws ServiceException
    Create an instance of the generated service implementation class for a given service interface, if available.
 abstract public Service loadService(URL wsdlDocumentLocation,
    Class serviceInterface,
    Properties props) 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.
 abstract public Service loadService(URL wsdlDocumentLocation,
    QName serviceName,
    Properties props) 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.
 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.