public class RuntimeUpdatesProcessor extends Object implements HotReplacementContext, Closeable
| Modifier and Type | Field and Description |
|---|---|
(package private) Throwable |
compileProblem |
(package private) static RuntimeUpdatesProcessor |
INSTANCE |
| Constructor and Description |
|---|
RuntimeUpdatesProcessor(Path applicationRoot,
DevModeContext context,
ClassLoaderCompiler compiler,
DevModeType devModeType,
BiConsumer<Set<String>,ClassScanResult> restartCallback,
BiConsumer<DevModeContext.ModuleInfo,String> copyResourceNotification,
BiFunction<String,byte[],byte[]> classTransformers) |
static volatile RuntimeUpdatesProcessor INSTANCE
volatile Throwable compileProblem
public RuntimeUpdatesProcessor(Path applicationRoot, DevModeContext context, ClassLoaderCompiler compiler, DevModeType devModeType, BiConsumer<Set<String>,ClassScanResult> restartCallback, BiConsumer<DevModeContext.ModuleInfo,String> copyResourceNotification, BiFunction<String,byte[],byte[]> classTransformers)
public Path getClassesDir()
getClassesDir in interface HotReplacementContextpublic List<Path> getSourcesDir()
getSourcesDir in interface HotReplacementContextpublic List<Path> getResourcesDir()
getResourcesDir in interface HotReplacementContextpublic Throwable getDeploymentProblem()
getDeploymentProblem in interface HotReplacementContextpublic void setRemoteProblem(Throwable throwable)
setRemoteProblem in interface HotReplacementContextpublic void updateFile(String file, byte[] data)
updateFile in interface HotReplacementContextpublic boolean isTest()
isTest in interface HotReplacementContextpublic DevModeType getDevModeType()
getDevModeType in interface HotReplacementContextpublic boolean doScan(boolean userInitiated)
throws IOException
doScan in interface HotReplacementContextIOExceptionpublic void addPreScanStep(Runnable runnable)
addPreScanStep in interface HotReplacementContextpublic void consumeNoRestartChanges(Consumer<Set<String>> consumer)
consumeNoRestartChanges in interface HotReplacementContextpublic Set<String> syncState(Map<String,String> fileHashes)
syncState in interface HotReplacementContextClassScanResult checkForChangedClasses() throws IOException
IOExceptionpublic Throwable getCompileProblem()
public RuntimeUpdatesProcessor setDisableInstrumentationForClassPredicate(Predicate<org.jboss.jandex.ClassInfo> disableInstrumentationForClassPredicate)
public RuntimeUpdatesProcessor setDisableInstrumentationForIndexPredicate(Predicate<org.jboss.jandex.Index> disableInstrumentationForIndexPredicate)
public RuntimeUpdatesProcessor setWatchedFilePaths(Map<String,Boolean> watchedFilePaths)
public void addHotReplacementSetup(HotReplacementSetup service)
public void startupFailed()
public static void setLastStartIndex(org.jboss.jandex.IndexView lastStartIndex)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.