Package io.quarkus.avro.deployment
Class AvroCodeGenProviderBase
java.lang.Object
io.quarkus.avro.deployment.AvroCodeGenProviderBase
- All Implemented Interfaces:
io.quarkus.deployment.CodeGenProvider
- Direct Known Subclasses:
AvroIDLCodeGenProvider,AvroProtocolCodeGenProvider,AvroSchemaCodeGenProvider
public abstract class AvroCodeGenProviderBase
extends Object
implements io.quarkus.deployment.CodeGenProvider
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final StringThe directory (within the java classpath) that contains the velocity templates to use for code generation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract voidcompileSingleFile(Path importPath, Path outputDir, AvroCodeGenProviderBase.AvroOptions options) String[]getImports(org.eclipse.microprofile.config.Config config) (package private) abstract voidinit()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
-
Field Details
-
templateDirectory
The directory (within the java classpath) that contains the velocity templates to use for code generation.- See Also:
-
-
Constructor Details
-
AvroCodeGenProviderBase
public AvroCodeGenProviderBase()
-
-
Method Details
-
inputDirectory
- Specified by:
inputDirectoryin interfaceio.quarkus.deployment.CodeGenProvider
-
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
-
init
abstract void init() -
compileSingleFile
abstract void compileSingleFile(Path importPath, Path outputDir, AvroCodeGenProviderBase.AvroOptions options) throws io.quarkus.bootstrap.prebuild.CodeGenException - Throws:
io.quarkus.bootstrap.prebuild.CodeGenException
-
getImports
-
shouldRun
- Specified by:
shouldRunin interfaceio.quarkus.deployment.CodeGenProvider
-