Class CachedEnvironmentSourceGenerator

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

@Deprecated(since="3.1.1") public class CachedEnvironmentSourceGenerator extends AbstractCodeGenerator
Deprecated.
On the JVM, this optimization has had no effect since Micronaut 5.0: CachedEnvironment reads the caching flag when it is initialized, which happens before the generated application context configurer is loaded. In native images the flag is set at image build time, so environment variables and system properties are still frozen at startup there.
Generates the code used to enable environment variables and system properties caching in Micronaut.
  • Field Details

  • Constructor Details

    • CachedEnvironmentSourceGenerator

      public CachedEnvironmentSourceGenerator()
      Deprecated.
  • Method Details

    • generate

      public void generate(@NonNull AOTContext context)
      Deprecated.