Package javax.xml.rpc
Class ServiceFactory
- java.lang.Object
-
- javax.xml.rpc.ServiceFactory
-
- Direct Known Subclasses:
ServiceFactory
public abstract class ServiceFactory extends java.lang.ObjectThejavax.xml.rpc.ServiceFactoryis 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 instancein a portable manner without using the constructor of theServiceimplementation class.The ServiceFactory implementation class is set using the system property
SERVICEFACTORY_PROPERTY.- Version:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSERVICEFACTORY_PROPERTYA constant representing the property used to lookup the name of aServiceFactoryimplementation class.
-
Constructor Summary
Constructors Modifier Constructor Description protectedServiceFactory()Protected constructor.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ServicecreateService(java.net.URL wsdlDocumentLocation, QName serviceName)Create aServiceinstance.abstract ServicecreateService(QName serviceName)Create aServiceinstance.abstract ServiceloadService(java.lang.Class class1)abstract ServiceloadService(java.net.URL url, java.lang.Class class1, java.util.Properties properties)abstract ServiceloadService(java.net.URL url, QName qname, java.util.Properties properties)static ServiceFactorynewInstance()Gets an instance of theServiceFactory
-
-
-
Field Detail
-
SERVICEFACTORY_PROPERTY
public static final java.lang.String SERVICEFACTORY_PROPERTY
A constant representing the property used to lookup the name of aServiceFactoryimplementation class.- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
public static ServiceFactory newInstance() throws ServiceException
Gets an instance of theServiceFactoryOnly 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.
- Returns:
- ServiceFactory.
- Throws:
ServiceException
-
createService
public abstract Service createService(java.net.URL wsdlDocumentLocation, QName serviceName) throws ServiceException
Create aServiceinstance.- Parameters:
wsdlDocumentLocation- URL for the WSDL document locationserviceName- QName for the service.- Returns:
- Service.
- Throws:
ServiceException- If any error in creation of the specified service
-
createService
public abstract Service createService(QName serviceName) throws ServiceException
Create aServiceinstance.- Parameters:
serviceName- QName for the service- Returns:
- Service.
- Throws:
ServiceException- If any error in creation of the specified service
-
loadService
public abstract Service loadService(java.lang.Class class1) throws ServiceException
- Throws:
ServiceException
-
loadService
public abstract Service loadService(java.net.URL url, java.lang.Class class1, java.util.Properties properties) throws ServiceException
- Throws:
ServiceException
-
loadService
public abstract Service loadService(java.net.URL url, QName qname, java.util.Properties properties) throws ServiceException
- Throws:
ServiceException
-
-