Class CxfBuildTimeConfig.Java2WsParameterSet
- java.lang.Object
-
- io.quarkiverse.cxf.deployment.CxfBuildTimeConfig.Java2WsParameterSet
-
- Enclosing class:
- CxfBuildTimeConfig
public static class CxfBuildTimeConfig.Java2WsParameterSet extends Object
-
-
Field Summary
Fields Modifier and Type Field Description Optional<List<String>>additionalParamsOptional<List<String>>excludesA comma separated list of glob patterns for selecting java class names which should not be processed withjava2wstool.Optional<List<String>>includesA comma separated list of glob patterns for selecting class names which should be processed withjava2wstool.static StringJAVA2WS_CONFIG_KEY_PREFIXStringwsdlNameTemplateA template for the names of generated WSDL files.
-
Constructor Summary
Constructors Constructor Description Java2WsParameterSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(String prefix)Throws anIllegalStateExceptionif thisCxfBuildTimeConfig.Java2WsParameterSetis invalid.
-
-
-
Field Detail
-
JAVA2WS_CONFIG_KEY_PREFIX
public static final String JAVA2WS_CONFIG_KEY_PREFIX
- See Also:
- Constant Field Values
-
includes
@ConfigItem public Optional<List<String>> includes
A comma separated list of glob patterns for selecting class names which should be processed withjava2wstool. The glob syntax is specified inio.quarkus.util.GlobUtil. The patterns are matched against fully qualified class names, such asorg.acme.MyClass.The universe of class names to which
includesandexcludesare applied is defined as follows: 1. Only classes visible in Jandex are considered. 2. From those, only the ones annotated with@WebServiceare selected.Examples:
Let's say that the application contains two classes annotated with
@WebServiceand that both are visible in Jandex. Their names areorg.foo.FruitWebServiceandorg.bar.HelloWebService.Then
quarkus.cxf.java2ws.includes = **.*WebServicewill match both class namesquarkus.cxf.java2ws.includes = org.foo.*will match onlyorg.foo.FruitWebService
java2wsexecution for each of the matching class names. If you need differentadditionalParamsfor each class, you may want to define a separate named parameter set for each one of them. Here is an example:# Parameters for the foo package quarkus.cxf.java2ws.foo-params.includes = org.foo.* quarkus.cxf.java2ws.foo-params.additional-params = -servicename,FruitService # Parameters for the bar package quarkus.cxf.java2ws.bar-params.includes = org.bar.* quarkus.cxf.java2ws.bar-params.additional-params = -servicename,HelloService
There is no default value for this option, so
java2wsWSDL generation is effectively disabled by default.Specifying
quarkus.cxf.java2ws.excludeswithout setting anyincludeswill cause a build time error.Make sure that the class names selected by
quarkus.cxf.java2ws.includesandquarkus.cxf.java2ws.[whatever-name].includesdo not overlap. Otherwise a build time exception will be thrown.If you would like to include the generated WSDL files in native image, you need to add them yourself using
quarkus.native.resources.includes/excludes.
-
excludes
@ConfigItem public Optional<List<String>> excludes
A comma separated list of glob patterns for selecting java class names which should not be processed withjava2wstool. Same syntax asincludes.
-
additionalParams
@ConfigItem public Optional<List<String>> additionalParams
A comma separated list of additional command line parameters that should be passed to CXFjava2wstool along with the files selected byincludesandexcludes. Example:-portname,12345. Checkjava2wsdocumentation for all supported options.Note that only options related to generation of WSDL from Java are supported currently.
-
wsdlNameTemplate
@ConfigItem(defaultValue="%CLASSES_DIR%/wsdl/%SIMPLE_CLASS_NAME%.wsdl") public String wsdlNameTemplate
A template for the names of generated WSDL files.There are 4 place holders, which can be used in the template:
%SIMPLE_CLASS_NAME%- the simple class name of the Java class from which we are generating%FULLY_QUALIFIED_CLASS_NAME%- the fully qualified name from which we are generating with all dots are replaced replaced by underscores%TARGET_DIR%- the target directory of the current module of the current build tool; typicallytargetfor Maven andbuildfor Gradle.%CLASSES_DIR%- the compiler output directory of the current module of the current build tool; typicallytarget/classesfor Maven andbuild/classesfor Gradle.
-
-
Method Detail
-
validate
public void validate(String prefix)
Throws anIllegalStateExceptionif thisCxfBuildTimeConfig.Java2WsParameterSetis invalid.- Parameters:
prefix- the property prefix such asquarkus.cxf.java2ws.footo use in the exception message if thisCxfBuildTimeConfig.Java2WsParameterSetis invalid
-
-