public abstract class ServiceFactory extends Object
Modifier and Type | Field and Description |
---|---|
static 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(QName serviceName)
Create a
Service instance. |
abstract Service |
createService(URL wsdlDocumentLocation,
QName serviceName)
Create a
Service instance. |
abstract Service |
loadService(Class serviceInterface)
Create an instance of the generated service implementation class for a given service interface, if available.
|
abstract Service |
loadService(URL wsdlDocumentLocation,
Class serviceInterface,
Properties props)
Create an instance of the generated service implementation class for a given service interface, if available.
|
abstract Service |
loadService(URL wsdlDocumentLocation,
QName serviceName,
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.
|
public static final String SERVICEFACTORY_PROPERTY
public static ServiceFactory newInstance() throws ServiceException
ServiceException
- on failure to instantiate the ServiceFactory implpublic abstract Service createService(URL wsdlDocumentLocation, 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(QName serviceName) throws ServiceException
Service
instance.serviceName
- QName for the serviceServiceException
- If any error in creation of the specified servicepublic abstract Service loadService(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(URL wsdlDocumentLocation, Class serviceInterface, 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(URL wsdlDocumentLocation, QName serviceName, 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 locatedCopyright © 2012 JBoss by Red Hat. All Rights Reserved.