Package io.quarkus.deployment.dev
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 Summary
Constructors Constructor Description CodeGenLock()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Lock
lockForCodeGen()
static Lock
lockForCompilation()
-