Package io.micronaut.gradle.aot
Interface AOTOptimizations
- All Known Subinterfaces:
AOTExtension
public interface AOTOptimizations
This interface represents the set of optimizations
that this particular version of the Gradle plugin
knows about.
-
Method Summary
Modifier and TypeMethodDescriptionorg.gradle.api.provider.Property<Boolean>
If set to true, the environment variables and system properties read at application startup will be deemed immutable.An optional map of properties which will be merged with the configuration to generate the final configuration file of Micronaut AOT.org.gradle.api.provider.Property<Boolean>
If set to true, YAML files will be converted to Java configuration.org.gradle.api.provider.Property<Boolean>
If set to true and that the application context uses deduceEnvironment(true) then the deduction will be done at build time instead of run time.Configures environment variables which will be injected during AOT analysis.Returns the Netty optimizationsorg.gradle.api.provider.Property<Boolean>
If set to true, the AOT compiler will optimize classloading.default org.gradle.api.provider.Property<Boolean>
A shorthand notation to enable Netty optimizationsorg.gradle.api.provider.Property<Boolean>
If set to true, services loading will be optimized.org.gradle.api.provider.ListProperty<String>
Sets the list of possible environment names.org.gradle.api.provider.Property<Boolean>
If set to true, the AOT will precompute at build time a number of different types of information which would have been computed at runtime instead.org.gradle.api.provider.Property<Boolean>
If set to true, logback.xml is replaced with Java configurationorg.gradle.api.provider.ListProperty<String>
Sets the list of target environment names.org.gradle.api.provider.Property<String>
The target package for AOT generated classes.default void
netty
(org.gradle.api.Action<? super NettyOptimizations> configuration) Configures the Netty optimizations
-
Method Details
-
getReplaceLogbackXml
If set to true, logback.xml is replaced with Java configuration- Returns:
- the logback configuration
-
getCacheEnvironment
If set to true, the environment variables and system properties read at application startup will be deemed immutable.- Returns:
- the cache environment property
-
getOptimizeServiceLoading
If set to true, services loading will be optimized. In particular, service definitions requirements will be evaluated ahead of time.- Returns:
- the service loading property
-
getConvertYamlToJava
If set to true, YAML files will be converted to Java configuration.- Returns:
- the yaml conversion property.
-
getOptimizeClassLoading
If set to true, the AOT compiler will optimize classloading. -
getPrecomputeOperations
If set to true, the AOT will precompute at build time a number of different types of information which would have been computed at runtime instead.- Returns:
- the precompute operation property
-
getDeduceEnvironment
If set to true and that the application context uses deduceEnvironment(true) then the deduction will be done at build time instead of run time.- Returns:
- the deduce environment property
-
getPossibleEnvironments
Sets the list of possible environment names. If set, then the list of environments which will be considered for some AOT optimizations will use this list, instead of using whatever is active when the dynamic AOT analysis is performed.- Returns:
- the list of possible environments
-
getTargetEnvironments
Sets the list of target environment names. If set, then the list of environments is automatically configured before the AOT analysis starts. Note that it differs fromgetPossibleEnvironments()
that this call will override whatever the application context is configured to use.- Returns:
- the list of target environments
-
getConfigurationProperties
An optional map of properties which will be merged with the configuration to generate the final configuration file of Micronaut AOT.- Returns:
- the configuration properties
-
getTargetPackage
The target package for AOT generated classes. For applications, it defaults to the package of the main class.- Returns:
- the target package property
-
getEnvironmentVariables
Configures environment variables which will be injected during AOT analysis. This can be useful whenever some beans require environment variables to be present, but that those are not available when the AOT analysis is performed.- Returns:
- the map of environment variables
-
getNettyOptimizations
NettyOptimizations getNettyOptimizations()Returns the Netty optimizations- Returns:
- the netty optimizations
-
netty
Configures the Netty optimizations -
getOptimizeNetty
A shorthand notation to enable Netty optimizations- Returns:
- the netty optimizations property
-