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
public abstract class AvroCodeGenProviderBase extends Object implements CodeGenProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAvroCodeGenProviderBase.AvroOptions
-
Field Summary
Fields Modifier and Type Field Description static String[]EMPTY(package private) static StringtemplateDirectoryThe directory (within the java classpath) that contains the velocity templates to use for code generation.
-
Constructor Summary
Constructors Constructor Description AvroCodeGenProviderBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract voidcompileSingleFile(Path importPath, Path outputDir, AvroCodeGenProviderBase.AvroOptions options)String[]getImports(org.eclipse.microprofile.config.Config config)(package private) abstract voidinit()StringinputDirectory()booleanshouldRun(Path sourceDir, org.eclipse.microprofile.config.Config config)booleantrigger(CodeGenContext context)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.deployment.CodeGenProvider
getInputDirectory, init, inputExtension, providerId
-
-
-
-
Field Detail
-
EMPTY
public static final String[] EMPTY
-
templateDirectory
static final String templateDirectory
The directory (within the java classpath) that contains the velocity templates to use for code generation.- See Also:
- Constant Field Values
-
-
Method Detail
-
inputDirectory
public String 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
public String[] getImports(org.eclipse.microprofile.config.Config config)
-
shouldRun
public boolean shouldRun(Path sourceDir, org.eclipse.microprofile.config.Config config)
- Specified by:
shouldRunin interfaceCodeGenProvider
-
-