Package io.quarkus.dev.spi
Interface HotReplacementContext
-
public interface HotReplacementContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPreScanStep(Runnable runnable)voidconsumeNoRestartChanges(Consumer<Set<String>> consumer)The consumer is invoked if only files which don't require restart are modified.booleandoScan(boolean userInitiated)PathgetClassesDir()ThrowablegetDeploymentProblem()DevModeTypegetDevModeType()Will return true if this is the remote side of a remote dev sessionList<Path>getResourcesDir()List<Path>getSourcesDir()booleanisTest()If this is true then this is a dev mode test case, rather than a user actually using Quarkus.voidsetRemoteProblem(Throwable throwable)Set<String>syncState(Map<String,String> fileHashes)voidupdateFile(String file, byte[] data)
-
-
-
Method Detail
-
getClassesDir
Path getClassesDir()
-
getDeploymentProblem
Throwable getDeploymentProblem()
-
setRemoteProblem
void setRemoteProblem(Throwable throwable)
-
updateFile
void updateFile(String file, byte[] data)
-
isTest
boolean isTest()
If this is true then this is a dev mode test case, rather than a user actually using Quarkus.
-
getDevModeType
DevModeType getDevModeType()
Will return true if this is the remote side of a remote dev session- Returns:
-
doScan
boolean doScan(boolean userInitiated) throws Exception- Returns:
trueif a restart was performed,falseotherwise- Throws:
Exception
-
addPreScanStep
void addPreScanStep(Runnable runnable)
-
consumeNoRestartChanges
void consumeNoRestartChanges(Consumer<Set<String>> consumer)
The consumer is invoked if only files which don't require restart are modified.- Parameters:
consumer- The input is a set of changed file paths- See Also:
HotDeploymentWatchedFileBuildItem#isRestartNeeded()
-
-