Class JDKModuleFinder

  • All Implemented Interfaces:
    IterableModuleFinder, ModuleFinder

    public final class JDKModuleFinder
    extends java.lang.Object
    implements IterableModuleFinder
    A module finder which finds a standard JDK module, a module on the JDK module path, or the special module org.jboss.modules.
    • Method Detail

      • getInstance

        public static JDKModuleFinder getInstance()
        Get the singleton instance.
        Returns:
        the singleton instance
      • iterateModules

        public java.util.Iterator<java.lang.String> iterateModules​(java.lang.String baseName,
                                                                   boolean recursive)
        Description copied from interface: IterableModuleFinder
        Iterate the modules which can be located via this module finder.
        Specified by:
        iterateModules in interface IterableModuleFinder
        Parameters:
        baseName - the identifier to start with, or null to iterate all modules; ignored if this module loader does not have a concept of nested modules
        recursive - true to find recursively nested modules, false to only find immediately nested modules; ignored if this module finder does not have a concept of nested modules
        Returns:
        an iterator for the modules in this module finder
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object