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
-
public class CXFProviderImpl extends WSContractProvider
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 Constructor Description CXFProviderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprovide(Class<?> endpointClass)Generates artifacts using the current settings.voidprovide(String endpointClass)Generates 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
-
-
-
-
Method Detail
-
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
public void setOutputDirectory(File directory)
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
public void setResourceDirectory(File directory)
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
public void setSourceDirectory(File directory)
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
public void setClassLoader(ClassLoader loader)
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
public void setMessageStream(PrintStream messageStream)
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
public void setPortSoapAddress(String address)
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
public void provide(String endpointClass)
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
public void provide(Class<?> endpointClass)
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
-
-