Package io.micronaut.aot.std.sourcegen
Class LogbackConfigurationSourceGenerator
java.lang.Object
io.micronaut.aot.core.codegen.AbstractCodeGenerator
io.micronaut.aot.core.codegen.AbstractSingleClassFileGenerator
io.micronaut.aot.std.sourcegen.LogbackConfigurationSourceGenerator
- All Implemented Interfaces:
AOTCodeGenerator
A source generator responsible for converting a logback.xml configuration into
Java configuration.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected @NonNull com.squareup.javapoet.JavaFile
generate()
void
generate
(@NonNull AOTContext context) protected String
Returns the name of the logback configuration file.Methods inherited from class io.micronaut.aot.core.codegen.AbstractSingleClassFileGenerator
getContext, javaFile
Methods inherited from class io.micronaut.aot.core.codegen.AbstractCodeGenerator
simpleNameOf, staticMethod, staticMethodBuilder
-
Field Details
-
ID
- See Also:
-
DESCRIPTION
- See Also:
-
-
Constructor Details
-
LogbackConfigurationSourceGenerator
public LogbackConfigurationSourceGenerator()
-
-
Method Details
-
generate
@NonNull protected @NonNull com.squareup.javapoet.JavaFile generate()- Specified by:
generate
in classAbstractSingleClassFileGenerator
-
getLogbackFileName
Returns the name of the logback configuration file. Can be overridden in tests.- Returns:
- the name of the logback configuration file
-
generate
- Specified by:
generate
in interfaceAOTCodeGenerator
- Overrides:
generate
in classAbstractSingleClassFileGenerator
-