Class LoggingDirectoryScanner

  • All Implemented Interfaces:
    Scanner

    public class LoggingDirectoryScanner
    extends DirectoryScanner
    Extended version of the DirectoryScanner which adds logger instructions in debug mode.
    Since:
    1.2
    • Constructor Detail

      • LoggingDirectoryScanner

        public LoggingDirectoryScanner​(Log logger)
        Constructs a new instance.
        Parameters:
        logger - the logger used to log included/excluded files (only in debug mode).
        Throws:
        IllegalArgumentException - if the logger is equal to null.
        Since:
        1.2
    • Method Detail

      • isExcluded

        protected boolean isExcluded​(String name)
        It additionally logs (in debug mode) for normal file information whether it is included or excluded.
        Overrides:
        isExcluded in class AbstractScanner
        Since:
        1.2