Package org.jboss.wsf.stack.cxf.tools
Class CXFProviderImpl
java.lang.Object
org.jboss.ws.api.tools.WSContractProvider
org.jboss.wsf.stack.cxf.tools.CXFProviderImpl
A WSContractProvider for the CXF stack
- Since:
- 01-Feb-2009
- Author:
- alessio.soldano@jboss.com
-
Field Summary
Fields inherited from class org.jboss.ws.api.tools.WSContractProvider
PROVIDER_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidGenerates artifacts using the current settings.voidGenerates artifacts using the current settings.voidsetClassLoader(ClassLoader loader) Sets the ClassLoader used to discover types.voidsetExtension(boolean extension) Enables/Disables SOAP 1.2 binding extensionvoidsetGenerateSource(boolean generateSource) Enables/Disables Java source generation.voidsetGenerateWsdl(boolean generateWsdl) Enables/Disables WSDL generation.voidsetMessageStream(PrintStream messageStream) Sets the PrintStream to use for status feedback.voidsetOutputDirectory(File directory) Sets the main output directory.voidsetPortSoapAddress(String address) Sets the soap:address to be used for the generated port in the wsdl.voidsetResourceDirectory(File directory) Sets the resource directory.voidsetSourceDirectory(File directory) Sets the source directory.Methods inherited from class org.jboss.ws.api.tools.WSContractProvider
newInstance, newInstance
-
Constructor Details
-
CXFProviderImpl
public CXFProviderImpl()
-
-
Method Details
-
setGenerateWsdl
public void setGenerateWsdl(boolean generateWsdl) Description copied from class:WSContractProviderEnables/Disables WSDL generation.- Specified by:
setGenerateWsdlin classWSContractProvider- Parameters:
generateWsdl- whether or not to generate WSDL
-
setExtension
public void setExtension(boolean extension) Description copied from class:WSContractProviderEnables/Disables SOAP 1.2 binding extension- Specified by:
setExtensionin classWSContractProvider- Parameters:
extension- whether or not to enable SOAP 1.2 binding extension
-
setGenerateSource
public void setGenerateSource(boolean generateSource) Description copied from class:WSContractProviderEnables/Disables Java source generation.- Specified by:
setGenerateSourcein classWSContractProvider- Parameters:
generateSource- whether or not to generate Java source.
-
setOutputDirectory
Description copied from class:WSContractProviderSets the main output directory. If the directory does not exist, it will be created.- Specified by:
setOutputDirectoryin classWSContractProvider- Parameters:
directory- the root directory for generated files
-
setResourceDirectory
Description copied from class:WSContractProviderSets the resource directory. This directory will contain any generated WSDL and XSD files. If the directory does not exist, it will be created. If not specified, the output directory will be used instead.- Specified by:
setResourceDirectoryin classWSContractProvider- Parameters:
directory- the root directory for generated resource files
-
setSourceDirectory
Description copied from class:WSContractProviderSets the source directory. This directory will contain any generated Java source. If the directory does not exist, it will be created. If not specified, the output directory will be used instead.- Specified by:
setSourceDirectoryin classWSContractProvider- Parameters:
directory- the root directory for generated source code
-
setClassLoader
Description copied from class:WSContractProviderSets the ClassLoader used to discover types. This defaults to the one used in instantiation.- Specified by:
setClassLoaderin classWSContractProvider- Parameters:
loader- the ClassLoader to use
-
setMessageStream
Description copied from class:WSContractProviderSets the PrintStream to use for status feedback. The simplest example would be to use System.out.Example output:
Generating WSDL: TestMeService.wsdl Writing Source: org/jboss/ws/tools/jaxws/TestMe.java org/jboss/ws/tools/jaxws/TestMeResponse.java Writing Classes: org/jboss/ws/tools/jaxws/TestMe.class org/jboss/ws/tools/jaxws/TestMeResponse.class
- Specified by:
setMessageStreamin classWSContractProvider- Parameters:
messageStream- the stream to use for status messages:
-
setPortSoapAddress
Description copied from class:WSContractProviderSets the soap:address to be used for the generated port in the wsdl. This is ignored if WSDL generation is disabled.- Specified by:
setPortSoapAddressin classWSContractProvider- Parameters:
address- soap address
-
provide
Description copied from class:WSContractProviderGenerates artifacts using the current settings. This method may be invoked more than once (e.g. multiple endpoints).- Specified by:
providein classWSContractProvider- Parameters:
endpointClass- the name of the endpoint implementation bean
-
provide
Description copied from class:WSContractProviderGenerates artifacts using the current settings. This method may be invoked more than once (e.g. multiple endpoints).- Specified by:
providein classWSContractProvider- Parameters:
endpointClass- the endpoint implementation bean
-