Name
ServiceFactory
Synopsis
public abstract class ServiceFactory {
// Protected Constructors
protected ServiceFactory( );
// Public Constants
public static final String SERVICEFACTORY_PROPERTY;
// ="javax.xml.rpc.ServiceFactory”
// Public Class Methods
public static ServiceFactory newInstance( ) throws ServiceException;
// Public Instance Methods
public abstract javax.xml.rpc.Service createService(javax.xml.namespace.QName serviceName)
throws ServiceException;
public abstract javax.xml.rpc.Service createService(java.net.URL wsdlDocumentLocation,
javax.xml.namespace.QName serviceName) throws ServiceException;
}ServiceFactory is a factory object used to create
Service
objects. To obtain an instance of
this abstract class, use the static newInstance( )
method, which attempts to locate a suitable concrete implementation
as follows:
Looks in the system properties for a property called
javax.xml.rpc.ServiceFactory. If this property is defined, its value is assumed to be the class name of a concrete implementation ofServiceFactory.Looks for the same property in a file called
${JAVA_HOME}/lib/jaxrpc.properties. If the property is found, its value is assumed to be the required class name.Looks for a resource called
META-INF/services/javax.xml.rpc.ServiceFactoryin the classpath. If such a resource exists, it is opened and a single line is read from it. If the line is not empty, it is used as the required class name.Uses an implementation-dependent default class. In the case of the reference ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access