Class LocalModuleLoader

    • Constructor Detail

      • LocalModuleLoader

        public LocalModuleLoader​(java.io.File[] repoRoots)
        Construct a new instance.
        Parameters:
        repoRoots - the array of repository roots to look for modules
      • LocalModuleLoader

        public LocalModuleLoader​(java.io.File[] repoRoots,
                                 PathFilter pathFilter)
        Construct a new instance.
        Parameters:
        repoRoots - the array of repository roots to look for modules
        pathFilter - the path filter to apply to roots
      • LocalModuleLoader

        public LocalModuleLoader()
        Construct a new instance, using the module.path system property or the JAVA_MODULEPATH environment variable to get the list of module repository roots.
    • Method Detail

      • toString

        public java.lang.String toString()
        Description copied from class: ModuleLoader
        Get the string representation of this module loader.
        Overrides:
        toString in class ModuleLoader
        Returns:
        the string representation
      • close

        public void close()
        Close this module loader and release all backing files. Note that subsequent load attempts will fail with an error after this method is called.
        Specified by:
        close in interface java.lang.AutoCloseable