Package io.micronaut.aot.core
Annotation Interface AOTModule
Annotation which must be present on AOT optimizers.
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionString[]
Returns the identifiers of source generators which must be executed before this generator is called.Returns a description for this source generator.Runtime[]
Returns the runtimes this module is valid for.Option[]
Returns the set of configuration keys which affect the configuration of this source generator.Class<? extends AOTCodeGenerator>[]
Returns a list of generators which are directly managed (or instantiated_ by this source generator.
-
Element Details
-
id
String idA unique identifier for this source generator.- Returns:
- the id
-
-
-
description
String descriptionReturns a description for this source generator. Description is optional because some code generators are purely internal and not exposed to users.- Returns:
- a description or an empty options
- Default:
- ""
-
dependencies
String[] dependenciesReturns the identifiers of source generators which must be executed before this generator is called.- Returns:
- the list of ids
- Default:
- {}
-
subgenerators
Class<? extends AOTCodeGenerator>[] subgeneratorsReturns a list of generators which are directly managed (or instantiated_ by this source generator. Such optimizers are typically not registered as services because they make no sense in isolation. This method should be used for introspection only.- Returns:
- the list of sub features
- Default:
- {}
-
options
Option[] optionsReturns the set of configuration keys which affect the configuration of this source generator.- Returns:
- a set of configuration keys
- Default:
- {}
-
enabledOn
Runtime[] enabledOnReturns the runtimes this module is valid for.- Returns:
- the list of runtimes this module applies to.
- Default:
- {JIT, NATIVE}
-