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.
javax.xml.rpc.Service
| Modifier and Type | Field and Description |
|---|---|
| private static final String | DEFAULT_SERVICEFACTORY
A constant representing the name of the default
|
| public static final String | SERVICEFACTORY_PROPERTY
A constant representing the property used to lookup the
name of a |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Service | createService(URL
URL for the WSDL document location
for the service wsdlDocumentLocation, QName QName for the service serviceName)Create a |
| public abstract Service | |
| public abstract Service | loadService(Class<T>
Service interface serviceInterface)Create an instance of the generated service implementation class for a given service interface, if available. |
| public abstract Service | loadService(URL
URL for the WSDL document location
for the service or null wsdlDocumentLocation, Class<T> Service interface serviceInterface, Properties A set of implementation-specific properties
to help locate the generated service
implementation class properties)Create an instance of the generated service implementation class for a given service interface, if available. |
| public abstract Service | loadService(URL
URL for the WSDL document location
for the service or null wsdlDocumentLocation, QName Qualified name for the service serviceName, Properties A set of implementation-specific properties
to help locate the generated service
implementation class properties)Create an instance of the generated service implementation class for a given service, if available. |
| public static ServiceFactory | newInstance()
Gets an instance of the Only one copy of a factory exists and is returned to the application each time this method is called. |
| DEFAULT_SERVICEFACTORY | back to summary |
|---|---|
| private static final String DEFAULT_SERVICEFACTORY A constant representing the name of the default
| |
| SERVICEFACTORY_PROPERTY | back to summary |
|---|---|
| public static final String SERVICEFACTORY_PROPERTY A constant representing the property used to lookup the
name of a | |
| ServiceFactory | back to summary |
|---|---|
| protected ServiceFactory() | |
| createService | back to summary |
|---|---|
| public abstract Service createService(URL wsdlDocumentLocation, QName serviceName) throws ServiceException Create a
| |
| createService | back to summary |
|---|---|
| public abstract Service createService(QName serviceName) throws ServiceException Create a
| |
| loadService | back to summary |
|---|---|
| public abstract Service loadService(Class<T> serviceInterface) throws ServiceException Create an instance of the generated service implementation class for a given service interface, if available.
| |
| loadService | back to summary |
|---|---|
| public abstract Service loadService(URL wsdlDocumentLocation, Class<T> serviceInterface, Properties properties) throws ServiceException Create an instance of the generated service implementation class
for a given service interface, if available.
An implementation may use the provided
| |
| loadService | back to summary |
|---|---|
| public abstract Service loadService(URL wsdlDocumentLocation, QName serviceName, Properties properties) throws ServiceException Create an instance of the generated service implementation
class for a given service, if available.
The service is uniquely identified by the
| |
| newInstance | back to summary |
|---|---|
| public static ServiceFactory newInstance() throws ServiceException Gets an instance of the 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. | |