| 
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAbstractUrlHandlerMapping
org.apache.cxf.jaxws.spring.JaxWsWebServicePublisherBeanPostProcessor
public class JaxWsWebServicePublisherBeanPostProcessor
Bean to scan context for potential web services. This scans the beans for classes that
 are annotated with @WebService. Excepting those already declared via the JAX-WS Spring
 schema, it launches each as an endpoint.
 
 By default, it sets up a default JaxWsServiceFactory and JAX-B data binding,
 and then creates a URL under /services/ based on the service name. Properties of the bean
 permit you to configure this; if you set prototypeServiceFactoryBeanName, the code
 will fetch that bean. It must be a prototype, since service factory object can't be used
 for more than one endpoint. Similarly, prototypeDataBindingBeanName can be used to 
 control the data binding.
 
 Note that this class uses org.apache.cxf.transport.servlet#CXFServlet from the 
 cxf-rt-transports-http-jetty library, which is not part of 
 the standard dependencies of the JAX-WS front
 end.
 
 If you use this processor in an environment with no servlet, it will still launch the
 endpoints using the embedded CXF server.
| Nested Class Summary | |
|---|---|
static class | 
JaxWsWebServicePublisherBeanPostProcessor.ServletAdapter
 | 
| Constructor Summary | |
|---|---|
JaxWsWebServicePublisherBeanPostProcessor()
 | 
|
| Method Summary | |
|---|---|
 String | 
getPrototypeDataBindingBeanName()
 | 
 String | 
getPrototypeServerFactoryBeanName()
 | 
 boolean | 
isCustomizedDataBinding()
For Unit Test.  | 
 boolean | 
isCustomizedServerFactory()
For Unit Test.  | 
 Object | 
postProcessAfterInitialization(Object bean,
                               String beanName)
 | 
 Object | 
postProcessBeforeInitialization(Object bean,
                                String beanName)
 | 
 void | 
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
 | 
 void | 
setPrototypeDataBindingBeanName(String prototypeDataBindingBeanName)
Set the data binding for all services launched by this bean.  | 
 void | 
setPrototypeServerFactoryBeanName(String prototypeServerFactoryBeanName)
Set the server factory for all services launched by this bean.  | 
 void | 
setServletConfig(javax.servlet.ServletConfig servletConfig)
 | 
 void | 
setUrlPrefix(String urlPrefix)
Set the prefix for the generated endpoint URLs.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public JaxWsWebServicePublisherBeanPostProcessor()
                                          throws SecurityException,
                                                 NoSuchMethodException,
                                                 ClassNotFoundException
SecurityException
NoSuchMethodException
ClassNotFoundException| Method Detail | 
|---|
public void setUrlPrefix(String urlPrefix)
urlPrefix - 
public Object postProcessBeforeInitialization(Object bean,
                                              String beanName)
                                       throws org.springframework.beans.BeansException
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansException
public Object postProcessAfterInitialization(Object bean,
                                             String beanName)
                                      throws org.springframework.beans.BeansException
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionpublic void setServletConfig(javax.servlet.ServletConfig servletConfig)
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
                    throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic String getPrototypeServerFactoryBeanName()
public void setPrototypeServerFactoryBeanName(String prototypeServerFactoryBeanName)
org.apache.cxf.frontend#ServerFactoryBean.
prototypeServerFactoryBeanName - public String getPrototypeDataBindingBeanName()
public void setPrototypeDataBindingBeanName(String prototypeDataBindingBeanName)
org.apache.cxf.databinding#DataBinding.
prototypeDataBindingBeanName - public boolean isCustomizedServerFactory()
public boolean isCustomizedDataBinding()
  | 
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||