Package io.quarkus.avro.deployment
Class AvroCodeGenProviderBase
java.lang.Object
io.quarkus.avro.deployment.AvroCodeGenProviderBase
- All Implemented Interfaces:
CodeGenProvider
- Direct Known Subclasses:
AvroIDLCodeGenProvider,AvroProtocolCodeGenProvider,AvroSchemaCodeGenProvider
-
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(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 interfaceCodeGenProvider
-
trigger
public boolean trigger(CodeGenContext context) throws io.quarkus.bootstrap.prebuild.CodeGenException - Specified by:
triggerin interfaceCodeGenProvider- 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 interfaceCodeGenProvider
-