Class FilesystemResourceLoader

    • Constructor Detail

      • FilesystemResourceLoader

        public FilesystemResourceLoader​(Path baseDirectory,
                                        ClassLoader delegate)
        Creates a resource loader that resolves resources against the given base directory. Files not found in file system and class lookups are delegated to ClassLoader.

        To use this constructor with the Java Module System, you must open all modules that contain resources to the org.apache.lucene.core module, otherwise resources can't be looked up. It is recommended to use FilesystemResourceLoader(Path, Module) for such use cases as this would limit to certain modules.

      • FilesystemResourceLoader

        public FilesystemResourceLoader​(Path baseDirectory,
                                        Module delegate)
        Creates a resource loader that resolves resources against the given base directory. Files not found in file system and class lookups are delegated to ModuleResourceLoader.

        To use this constructor, you must open the module to the org.apache.lucene.core module, otherwise resources can't be looked up.

      • FilesystemResourceLoader

        public FilesystemResourceLoader​(Path baseDirectory,
                                        ResourceLoader delegate)
        Creates a resource loader that resolves resources against the given base directory. Files not found in file system and class lookups are delegated to the given delegate ResourceLoader.