Interface DataProvider

    • Field Detail

      • ZIP_ARCHIVE_PATTERN

        static final Pattern ZIP_ARCHIVE_PATTERN
        Pattern for name of zip/jar archives.
    • Method Detail

      • feed

        boolean feed​(Pattern supported,
                     DataLoader visitor,
                     DataProvidersManager manager)
        Feed a data file loader by browsing the data collection.

        The method crawls all files referenced in the instance (for example all files in a directories tree) and for each file supported by the file loader it asks the file loader to load it.

        If the method completes without exception, then the data loader is considered to have been fed successfully and the top level data providers manager will return immediately without attempting to use the next configured providers.

        If the method completes abruptly with an exception, then the top level data providers manager will try to use the next configured providers, in case another one can feed the data loader.

        Parameters:
        supported - pattern for file names supported by the visitor
        visitor - data file visitor to use
        manager - with the filters to apply to the resources.
        Returns:
        true if some data has been loaded