Class SpringServiceBuilderFactory
java.lang.Object
org.apache.cxf.tools.java2wsdl.processor.internal.ServiceBuilderFactory
org.apache.cxf.tools.java2wsdl.processor.internal.SpringServiceBuilderFactory
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdatabindingNameToBeanName(String databindingName) Convert a parameter value to the name of a bean we'd use for a data binding.static org.springframework.context.ApplicationContextgetApplicationContext(List<String> additionalFilePathnames) This is factored out to permit use in a unit test.protected StringReturn the name of a prototype bean from Spring that can provide the service.voidsetBeanDefinitions(List<String> beanDefinitions) Methods inherited from class org.apache.cxf.tools.java2wsdl.processor.internal.ServiceBuilderFactory
getDatabindingName, getInstance, getStyle, newBuilder, setDatabindingName, setServiceClass
-
Constructor Details
-
SpringServiceBuilderFactory
-
SpringServiceBuilderFactory
public SpringServiceBuilderFactory()
-
-
Method Details
-
databindingNameToBeanName
Convert a parameter value to the name of a bean we'd use for a data binding.- Parameters:
databindingName-- Returns:
-
newBuilder
- Specified by:
newBuilderin classServiceBuilderFactory
-
getBuilderBeanName
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:
additionalFilePathnames-- Returns:
-
setBeanDefinitions
-