Class ResourceLoaderModuleFinder

  • All Implemented Interfaces:
    ModuleFinder

    public final class ResourceLoaderModuleFinder
    extends java.lang.Object
    implements ModuleFinder
    A module loader which loads modules which are stored inside the modules directory of a single JAR or JAR-like root.
    • Constructor Detail

      • ResourceLoaderModuleFinder

        public ResourceLoaderModuleFinder​(ResourceLoader resourceLoader,
                                          java.lang.String modulesDirectory)
        Construct a new instance. The given resource loader should support the nested ResourceLoader.createSubloader(String, String) operation if <resource-root> elements are to be supported in module.xml files found within the loader.
        Parameters:
        resourceLoader - the base resource loader to use (must not be null)
        modulesDirectory - the modules directory to use (must not be null)
      • ResourceLoaderModuleFinder

        public ResourceLoaderModuleFinder​(ResourceLoader resourceLoader)
        Construct a new instance. The given resource loader should support the nested ResourceLoader.createSubloader(String, String) operation if <resource-root> elements are to be supported in module.xml files found within the loader.
        Parameters:
        resourceLoader - the base resource loader to use (must not be null)