Class DeduceEnvironmentSourceGenerator
java.lang.Object
io.micronaut.aot.core.codegen.AbstractCodeGenerator
io.micronaut.aot.std.sourcegen.DeduceEnvironmentSourceGenerator
- All Implemented Interfaces:
AOTCodeGenerator
This code generator is responsible for taking the result
of the environment deduction, which is the set of active
environment names, and inject it 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.
The package names are not injected: at build time they are deduced from the AOT tool's own call stack, not from the application, and package deduction still runs at run time.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractCodeGenerator
simpleNameOf, staticMethod, staticMethodBuilder
-
Field Details
-
ID
- See Also:
-
DESCRIPTION
- See Also:
-
DEDUCED_ENVIRONMENT_CONFIGURER
- See Also:
-
-
Constructor Details
-
DeduceEnvironmentSourceGenerator
public DeduceEnvironmentSourceGenerator()
-
-
Method Details
-
generate
-