Interface HotReplacementContext


  • public interface HotReplacementContext
    • Method Detail

      • getClassesDir

        Path getClassesDir()
      • getSourcesDir

        List<Path> getSourcesDir()
      • getResourcesDir

        List<Path> getResourcesDir()
      • 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:
        true if a restart was performed, false otherwise
        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()