Apache CXF API

org.apache.cxf.tools.java2wsdl.processor.internal
Class SpringServiceBuilderFactory

java.lang.Object
  extended by org.apache.cxf.tools.java2wsdl.processor.internal.ServiceBuilderFactory
      extended by org.apache.cxf.tools.java2wsdl.processor.internal.SpringServiceBuilderFactory

public final class SpringServiceBuilderFactory
extends ServiceBuilderFactory

This class constructs ServiceBuilder objects using Spring. These objects are used to access the services and the data bindings to generate the wsdl.


Field Summary
 
Fields inherited from class org.apache.cxf.tools.java2wsdl.processor.internal.ServiceBuilderFactory
databindingName, frontend, serviceClass
 
Constructor Summary
SpringServiceBuilderFactory()
           
SpringServiceBuilderFactory(List<String> beanDefinitions)
           
 
Method Summary
static String databindingNameToBeanName(String dbName)
          Convert a parameter value to the name of a bean we'd use for a data binding.
static org.springframework.context.ApplicationContext getApplicationContext(List<String> additionalFilePathnames)
          This is factored out to permit use in a unit test.
protected  String getBuilderBeanName(FrontendFactory.Style s)
          Return the name of a prototype bean from Spring that can provide the service.
 ServiceBuilder newBuilder(FrontendFactory.Style s)
           
 void setBeanDefinitions(List<String> beanDefinitions)
           
 
Methods inherited from class org.apache.cxf.tools.java2wsdl.processor.internal.ServiceBuilderFactory
getDatabindingName, getInstance, getStyle, newBuilder, setDatabindingName, setServiceClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringServiceBuilderFactory

public SpringServiceBuilderFactory(List<String> beanDefinitions)

SpringServiceBuilderFactory

public SpringServiceBuilderFactory()
Method Detail

databindingNameToBeanName

public static String databindingNameToBeanName(String dbName)
Convert a parameter value to the name of a bean we'd use for a data binding.

Parameters:
databindingName -
Returns:

newBuilder

public ServiceBuilder newBuilder(FrontendFactory.Style s)
Specified by:
newBuilder in class ServiceBuilderFactory

getBuilderBeanName

protected String getBuilderBeanName(FrontendFactory.Style s)
Return the name of a prototype bean from Spring that can provide the service. The use of a bean allows for the possibility of an override.

Parameters:
s - Style of service
Returns:
name of bean.

getApplicationContext

public static org.springframework.context.ApplicationContext getApplicationContext(List<String> additionalFilePathnames)
This is factored out to permit use in a unit test.

Parameters:
bus -
Returns:

setBeanDefinitions

public void setBeanDefinitions(List<String> beanDefinitions)

Apache CXF API

Apache CXF