Class CodeGenLock

java.lang.Object
io.quarkus.deployment.dev.CodeGenLock

public class CodeGenLock extends Object
Lock that is used to prevent scanning and compiling while code generator is updating sources There is a race when testing this, where you can see the intermediate empty state of the file, or where the file time changes twice. Codegen hold this lock during modification to avoid the race.
  • Constructor Details

    • CodeGenLock

      public CodeGenLock()
  • Method Details

    • lockForCodeGen

      public static Lock lockForCodeGen()
    • lockForCompilation

      public static Lock lockForCompilation()