Interface CxfBuildTimeConfig.Java2WsParameterSet
-
- Enclosing interface:
- CxfBuildTimeConfig
public static interface CxfBuildTimeConfig.Java2WsParameterSet
-
-
Field Summary
Fields Modifier and Type Field Description static StringJAVA2WS_CONFIG_KEY_PREFIX
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Optional<List<String>>additionalParams()A comma separated list of additional command line parameters that should be passed to CXFjava2wstool along with the files selected byincludes()andexcludes().Optional<List<String>>excludes()A comma separated list of glob patterns for selecting java class names which should not be processed withjava2wstool.Optional<List<String>>includes()A comma separated list of glob patterns for selecting class names which should be processed withjava2wstool.default voidvalidate(String prefix)Throws anIllegalStateExceptionif thisCxfBuildTimeConfig.Java2WsParameterSetis invalid.StringwsdlNameTemplate()A template for the names of generated WSDL files.
-
-
-
Field Detail
-
JAVA2WS_CONFIG_KEY_PREFIX
static final String JAVA2WS_CONFIG_KEY_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
includes
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 differentadditionalParams()for 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
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
Optional<List<String>> additionalParams()
A comma separated list of additional command line parameters that should be passed to CXFjava2wstool along with the files selected byincludes()andexcludes(). Example:-portname,12345. Checkjava2wsdocumentation for all supported options.Note that only options related to generation of WSDL from Java are supported currently.
-
wsdlNameTemplate
@WithDefault("%CLASSES_DIR%/wsdl/%SIMPLE_CLASS_NAME%.wsdl") 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.
-
validate
default 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
-
-