org.springframework.boot.devtools.restart.server

Interface SourceFolderUrlFilter

  • All Known Implementing Classes:
    DefaultSourceFolderUrlFilter
    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 SourceFolderUrlFilter
    Filter URLs based on a source folder name. Used to match URLs from the running classpath against source folders on a remote system.
    Since:
    1.3.0
    Author:
    Phillip Webb
    See Also:
    DefaultSourceFolderUrlFilter
    • Method Detail

      • isMatch

        boolean isMatch(String sourceFolder,
                        URL url)
        Determine if the specified URL matches a source folder.
        Parameters:
        sourceFolder - the source folder
        url - the URL to check
        Returns:
        true if the URL matches