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:
io.micronaut.aot.core.AOTCodeGenerator

public class LogbackConfigurationSourceGenerator extends io.micronaut.aot.core.codegen.AbstractSingleClassFileGenerator
A source generator responsible for converting a logback.xml configuration into Java configuration.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected @NonNull com.squareup.javapoet.JavaFile
     
    void
    generate(@NonNull io.micronaut.aot.core.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • LogbackConfigurationSourceGenerator

      public LogbackConfigurationSourceGenerator()
  • Method Details

    • generate

      @NonNull protected @NonNull com.squareup.javapoet.JavaFile generate()
      Specified by:
      generate in class io.micronaut.aot.core.codegen.AbstractSingleClassFileGenerator
    • getLogbackFileName

      protected String getLogbackFileName()
      Returns the name of the logback configuration file. Can be overridden in tests.
      Returns:
      the name of the logback configuration file
    • generate

      public void generate(@NonNull @NonNull io.micronaut.aot.core.AOTContext context)
      Specified by:
      generate in interface io.micronaut.aot.core.AOTCodeGenerator
      Overrides:
      generate in class io.micronaut.aot.core.codegen.AbstractSingleClassFileGenerator