public abstract class ServiceFactory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
ServiceFactory.PropertyAccessAction |
Modifier and Type | Field and Description |
---|---|
private static java.lang.String[] |
alternativeFactories |
private static java.lang.String |
DEFAULT_SERVICE_FACTORY |
private static ServiceFactory |
factory |
private static java.util.logging.Logger |
log |
static java.lang.String |
SERVICEFACTORY_PROPERTY
A constant representing the property used to lookup the name of a ServiceFactory implementation class.
|
Modifier | Constructor and Description |
---|---|
protected |
ServiceFactory() |
Modifier and Type | Method and Description |
---|---|
abstract Service |
createService(javax.xml.namespace.QName serviceName)
Create a
Service instance. |
abstract Service |
createService(java.net.URL wsdlDocumentLocation,
javax.xml.namespace.QName serviceName)
Create a
Service instance. |
abstract Service |
loadService(java.lang.Class serviceInterface)
Create an instance of the generated service implementation class for a given service interface, if available.
|
abstract Service |
loadService(java.net.URL wsdlDocumentLocation,
java.lang.Class serviceInterface,
java.util.Properties props)
Create an instance of the generated service implementation class for a given service interface, if available.
|
abstract Service |
loadService(java.net.URL wsdlDocumentLocation,
javax.xml.namespace.QName serviceName,
java.util.Properties props)
Create an instance of the generated service implementation class for a given service, if available.
|
static ServiceFactory |
newInstance()
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.
|
private static java.util.logging.Logger log
private static ServiceFactory factory
public static final java.lang.String SERVICEFACTORY_PROPERTY
private static final java.lang.String DEFAULT_SERVICE_FACTORY
private static final java.lang.String[] alternativeFactories
public static ServiceFactory newInstance() throws ServiceException
ServiceException
- on failure to instantiate the ServiceFactory implpublic abstract Service createService(java.net.URL wsdlDocumentLocation, javax.xml.namespace.QName serviceName) throws ServiceException
Service
instance.wsdlDocumentLocation
- URL for the WSDL document locationserviceName
- QName for the service.ServiceException
- If any error in creation of the
specified servicepublic abstract Service createService(javax.xml.namespace.QName serviceName) throws ServiceException
Service
instance.serviceName
- QName for the serviceServiceException
- If any error in creation of the specified servicepublic abstract Service loadService(java.lang.Class serviceInterface) throws ServiceException
serviceInterface
- Service interfaceServiceException
- If there is any error while creating the specified service, including the case where a
generated service implementation class cannot be locatedpublic abstract Service loadService(java.net.URL wsdlDocumentLocation, java.lang.Class serviceInterface, java.util.Properties props) throws ServiceException
wsdlDocumentLocation
- URL for the WSDL document location for the service or nullserviceInterface
- Service interfaceprops
- A set of implementation-specific properties to help locate the generated service implementation classServiceException
- If there is any error while creating the specified service, including the case where a
generated service implementation class cannot be locatedpublic abstract Service loadService(java.net.URL wsdlDocumentLocation, javax.xml.namespace.QName serviceName, java.util.Properties props) throws ServiceException
wsdlDocumentLocation
- URL for the WSDL document location for the service or nullserviceName
- Qualified name for the serviceprops
- A set of implementation-specific properties to help locate the generated service implementation classServiceException
- If there is any error while creating the specified service, including the case where a generated service implementation class cannot be located