Class FileSystemClassPathModuleFinder

  • All Implemented Interfaces:
    ModuleFinder

    public class FileSystemClassPathModuleFinder
    extends java.lang.Object
    implements ModuleFinder
    A module finder which loads modules from individual JARs or directories on the file system, supporting the JAR specification headers as well as the extended MANIFEST headers supported by JBoss Modules. The JAR files or modules may in turn contain nested module repositories inside of their modules subdirectories. Modules in nested repositories are only visible to the module that contains them.
    Author:
    David M. Lloyd, Richard Opalka
    • Constructor Detail

      • FileSystemClassPathModuleFinder

        public FileSystemClassPathModuleFinder​(ModuleLoader baseModuleLoader)
        Construct a new instance.
        Parameters:
        baseModuleLoader - the module loader to use to load module dependencies from (must not be null)
      • FileSystemClassPathModuleFinder

        public FileSystemClassPathModuleFinder​(ModuleLoader baseModuleLoader,
                                               java.util.function.Supplier<ModuleLoader> extensionModuleLoaderSupplier)
        Construct a new instance.
        Parameters:
        baseModuleLoader - the module loader to use to load module dependencies from (must not be null)
        extensionModuleLoaderSupplier - a supplier which yields a module loader for loading extensions (must not be null)
      • FileSystemClassPathModuleFinder

        public FileSystemClassPathModuleFinder​(java.util.function.Supplier<ModuleLoader> baseModuleLoaderSupplier,
                                               java.util.function.Supplier<ModuleLoader> extensionModuleLoaderSupplier)
        Construct a new instance.
        Parameters:
        baseModuleLoaderSupplier - the supplier to supply a module loader for loading dependencies (must not be null)
        extensionModuleLoaderSupplier - a supplier which yields a module loader for loading extensions (must not be null)