Package io.micronaut.aot.std.sourcegen
Class GenericPropertySourceGenerator
java.lang.Object
io.micronaut.aot.core.codegen.AbstractCodeGenerator
io.micronaut.aot.std.sourcegen.GenericPropertySourceGenerator
- All Implemented Interfaces:
 AOTCodeGenerator
A source generator which will generate a static 
PropertySource
 from a given configuration file, in order to substitute the dynamic loader
 with a static configuration.
 It works for any types of loaders and therefore needs to use reflection to instantiate them.- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionGenericPropertySourceGenerator(AOTContext context, Collection<io.micronaut.context.env.ActiveEnvironment> environments) Create the generic property source generator from resource names. - 
Method Summary
Methods inherited from class io.micronaut.aot.core.codegen.AbstractCodeGenerator
simpleNameOf, staticMethod, staticMethodBuilder 
- 
Field Details
- 
ID
- See Also:
 
 - 
DESCRIPTION
- See Also:
 
 - 
TYPES_OPTION
 - 
BASE_ORDER_OPTION
 - 
RESOURCE_NAMES_OPTION
 - 
SERVICE_LOADER_EXCLUDE_OPTION
 - 
YAML_GENERATION_OPTION
 - 
YAML_PROPERTY_SOURCE_LOADER
 
 - 
 - 
Constructor Details
- 
GenericPropertySourceGenerator
public GenericPropertySourceGenerator(AOTContext context, Collection<io.micronaut.context.env.ActiveEnvironment> environments) Create the generic property source generator from resource names. A resource name and environment will form a property source name e.g.applicationorapplication-test.- Parameters:
 context- The AOT context to read properties fromenvironments- The environments
 
 - 
 - 
Method Details
- 
generate
 
 -