|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.springframework.remoting.jaxrpc.LocalJaxRpcServiceFactory
Factory for locally defined JAX-RPC Service references. Uses a JAX-RPC ServiceFactory underneath.
ServiceFactory,
Service| Field Summary | |
protected Log |
logger
|
| Constructor Summary | |
LocalJaxRpcServiceFactory()
|
|
| Method Summary | |
Service |
createJaxRpcService()
Create a JAX-RPC Service according to the parameters of this factory. |
ServiceFactory |
createServiceFactory()
Create a JAX-RPC ServiceFactory, either of the specified class or the default. |
String |
getNamespaceUri()
Return the namespace URI of the service. |
QName |
getQName(String name)
Return a QName for the given name, relative to the namespace URI of this factory, if given. |
Class |
getServiceFactoryClass()
Return the ServiceFactory class to use, or null if default. |
String |
getServiceName()
Return the name of the service. |
JaxRpcServicePostProcessor[] |
getServicePostProcessors()
Return the JaxRpcServicePostProcessors to be applied to JAX-RPC Service instances created by this factory. |
URL |
getWsdlDocumentUrl()
Return the URL of the WSDL document that describes the service. |
protected void |
postProcessJaxRpcService(Service service)
Post-process the given JAX-RPC Service. |
void |
setNamespaceUri(String namespaceUri)
Set the namespace URI of the service. |
void |
setServiceFactoryClass(Class serviceFactoryClass)
Set the ServiceFactory class to use, for example "org.apache.axis.client.ServiceFactory". |
void |
setServiceName(String serviceName)
Set the name of the service. |
void |
setServicePostProcessors(JaxRpcServicePostProcessor[] servicePostProcessors)
Set the JaxRpcServicePostProcessors to be applied to JAX-RPC Service instances created by this factory. |
void |
setWsdlDocumentUrl(URL wsdlDocumentUrl)
Set the URL of the WSDL document that describes the service. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final Log logger
| Constructor Detail |
public LocalJaxRpcServiceFactory()
| Method Detail |
public void setServiceFactoryClass(Class serviceFactoryClass)
Does not need to be set if the JAX-RPC implementation has registered itself with the JAX-RPC system property "SERVICEFACTORY_PROPERTY".
ServiceFactorypublic Class getServiceFactoryClass()
public void setWsdlDocumentUrl(URL wsdlDocumentUrl)
public URL getWsdlDocumentUrl()
public void setNamespaceUri(String namespaceUri)
public String getNamespaceUri()
public void setServiceName(String serviceName)
public String getServiceName()
public void setServicePostProcessors(JaxRpcServicePostProcessor[] servicePostProcessors)
Such post-processors can, for example, register custom type mappings. They are reusable across all pre-built subclasses of this factory: LocalJaxRpcServiceFactoryBean, JaxRpcPortClientInterceptor, JaxRpcPortProxyFactoryBean.
LocalJaxRpcServiceFactoryBean,
JaxRpcPortClientInterceptor,
JaxRpcPortProxyFactoryBeanpublic JaxRpcServicePostProcessor[] getServicePostProcessors()
public QName getQName(String name)
setNamespaceUri(java.lang.String)
public ServiceFactory createServiceFactory()
throws ServiceException
ServiceExceptionsetServiceFactoryClass(java.lang.Class)
public Service createJaxRpcService()
throws ServiceException
ServiceExceptionsetServiceName(java.lang.String),
setWsdlDocumentUrl(java.net.URL),
postProcessJaxRpcService(javax.xml.rpc.Service)protected void postProcessJaxRpcService(Service service)
createJaxRpcService.
Useful, for example, to register custom type mappings.
Default implementation delegates to all registered JaxRpcServicePostProcessors. It is usually preferable to implement custom type mappings etc there rather than in a subclass of this factory, to be able to reuse the post-processors.
service - the current JAX-RPC Service
(can be cast to an implementation-specific class if necessary)createJaxRpcService(),
setServicePostProcessors(org.springframework.remoting.jaxrpc.JaxRpcServicePostProcessor[]),
Service.getTypeMappingRegistry()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||