|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.xml.rpc.ServiceFactory
public abstract class 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
system property SERVICEFACTORY_PROPERTY
.
Service
Field Summary | |
---|---|
static java.lang.String |
SERVICEFACTORY_PROPERTY
A constant representing the property used to lookup the name of a ServiceFactory implementation
class. |
Constructor Summary | |
---|---|
protected |
ServiceFactory()
|
Method Summary | |
---|---|
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 properties)
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 properties)
Create an instance of the generated service implementation class for a given service, if available. |
static ServiceFactory |
newInstance()
Gets an instance of the ServiceFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SERVICEFACTORY_PROPERTY
ServiceFactory
implementation
class.
Constructor Detail |
---|
protected ServiceFactory()
Method Detail |
---|
public static ServiceFactory newInstance() throws ServiceException
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.
ServiceException
public abstract Service createService(java.net.URL wsdlDocumentLocation, javax.xml.namespace.QName serviceName) throws ServiceException
Service
instance.
wsdlDocumentLocation
- URL for the WSDL document location
for the serviceserviceName
- 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 service
ServiceException
- If any error in creation of the
specified servicepublic abstract Service loadService(java.lang.Class serviceInterface) throws ServiceException
serviceInterface
- Service interface
ServiceException
- 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 properties) throws ServiceException
wsdlDocumentLocation
and properties
to help locate the generated implementation
class. If no such class is present, a ServiceException
will be thrown.
wsdlDocumentLocation
- URL for the WSDL document location
for the service or nullserviceInterface
- Service interfaceproperties
- A set of implementation-specific properties
to help locate the generated service
implementation class
ServiceException
- 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 properties) throws ServiceException
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.
wsdlDocumentLocation
- URL for the WSDL document location
for the service or nullserviceName
- Qualified name for the serviceproperties
- A set of implementation-specific properties
to help locate the generated service
implementation class
ServiceException
- If there is any error while creating the
specified service, including the case where
a generated service implementation class cannot
be located
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 10-February-2011 12:41