org.springframework.boot.devtools.classpath

Interface ClassPathRestartStrategy

  • All Known Implementing Classes:
    PatternClassPathRestartStrategy
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.


    @FunctionalInterface
    public interface ClassPathRestartStrategy
    Strategy interface used to determine when a changed classpath file should trigger a full application restart. For example, static web resources might not require a full restart where as class files would.
    Since:
    1.3.0
    Author:
    Phillip Webb
    See Also:
    PatternClassPathRestartStrategy
    • Method Detail

      • isRestartRequired

        boolean isRestartRequired(ChangedFile file)
        Return true if a full restart is required.
        Parameters:
        file - the changed file
        Returns:
        true if a full restart is required