Class OpenApiGeneratorCodeGenBase
java.lang.Object
io.quarkiverse.openapi.generator.deployment.codegen.OpenApiGeneratorCodeGenBase
- All Implemented Interfaces:
io.quarkus.deployment.CodeGenProvider
- Direct Known Subclasses:
OpenApiGeneratorJsonCodeGen,OpenApiGeneratorStreamCodeGen,OpenApiGeneratorYamlCodeGen,OpenApiGeneratorYmlCodeGen
public abstract class OpenApiGeneratorCodeGenBase
extends Object
implements io.quarkus.deployment.CodeGenProvider
Code generation for OpenApi Client. Generates Java classes from OpenApi spec files located in src/main/openapi or
src/test/openapi
Wraps the OpenAPI Generator Client for Java
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgenerate(OpenApiGeneratorOptions options) The input base directory fromprotected static booleanisHibernateValidatorPresent(io.quarkus.deployment.CodeGenContext context) protected booleanisRestEasyReactive(io.quarkus.deployment.CodeGenContext context) booleanbooleantrigger(io.quarkus.deployment.CodeGenContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.deployment.CodeGenProvider
getInputDirectory, init, inputExtension, inputExtensions, providerId
-
Constructor Details
-
OpenApiGeneratorCodeGenBase
public OpenApiGeneratorCodeGenBase()
-
-
Method Details
-
inputDirectory
The input base directory fromsrc/main
directory. Ignored if INPUT_BASE_DIR is specified.
- Specified by:
inputDirectoryin interfaceio.quarkus.deployment.CodeGenProvider
-
shouldRun
- Specified by:
shouldRunin interfaceio.quarkus.deployment.CodeGenProvider
-
isRestEasyReactive
protected boolean isRestEasyReactive(io.quarkus.deployment.CodeGenContext context) -
trigger
public boolean trigger(io.quarkus.deployment.CodeGenContext context) throws io.quarkus.bootstrap.prebuild.CodeGenException - Specified by:
triggerin interfaceio.quarkus.deployment.CodeGenProvider- Throws:
io.quarkus.bootstrap.prebuild.CodeGenException
-
isHibernateValidatorPresent
protected static boolean isHibernateValidatorPresent(io.quarkus.deployment.CodeGenContext context) -
generate
-