Class DeduceEnvironmentSourceGenerator

java.lang.Object
io.micronaut.aot.core.codegen.AbstractCodeGenerator
io.micronaut.aot.std.sourcegen.DeduceEnvironmentSourceGenerator
All Implemented Interfaces:
io.micronaut.aot.core.AOTCodeGenerator

public class DeduceEnvironmentSourceGenerator extends io.micronaut.aot.core.codegen.AbstractCodeGenerator
This code generator is responsible for taking the result of the environment deduction, which is the set of active environment names and the package names, and inject is via a custom application context configurer. The resulting class will effectively disable environment deduction, so it will be done at build time instead of run time.
  • Field Details

  • Constructor Details

    • DeduceEnvironmentSourceGenerator

      public DeduceEnvironmentSourceGenerator()
  • Method Details

    • generate

      public void generate(io.micronaut.aot.core.AOTContext context)