Interface ModuleFinder

    • Method Detail

      • findModule

        default ModuleSpec findModule​(ModuleIdentifier moduleIdentifier,
                                      ModuleLoader delegateLoader)
                               throws ModuleLoadException
        Find a module specification for the given identifier. The default implementation returns null. This method will never be called by the module system unless findModule(String, ModuleLoader) is left unimplemented.
        Parameters:
        moduleIdentifier - the module identifier
        delegateLoader - the module loader from which dependencies should be resolved
        Returns:
        the module specification, or null if no specification is found for this identifier
        Throws:
        ModuleLoadException