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
  • Field Details

    • templateDirectory

      static final String 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

      public String inputDirectory()
      Specified by:
      inputDirectory in interface CodeGenProvider
    • trigger

      public boolean trigger(CodeGenContext context) throws io.quarkus.bootstrap.prebuild.CodeGenException
      Specified by:
      trigger in interface 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

      public String[] getImports(org.eclipse.microprofile.config.Config config)
    • shouldRun

      public boolean shouldRun(Path sourceDir, org.eclipse.microprofile.config.Config config)
      Specified by:
      shouldRun in interface CodeGenProvider