Class FileSystemModuleToConfigDirectoryIndex

  • All Implemented Interfaces:
    ModuleToConfigDirectoryIndex

    public class FileSystemModuleToConfigDirectoryIndex
    extends java.lang.Object
    implements ModuleToConfigDirectoryIndex
    This is the default index from module to configuration directory, which first looks into the JSON index file, and if a module isn't found there, would try to find it in the standard FS location.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.nio.file.Path> findConfigurationDirectories​(java.lang.String groupId, java.lang.String artifactId)
      Returns the directory containing the candidate configurations for the given module.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileSystemModuleToConfigDirectoryIndex

        public FileSystemModuleToConfigDirectoryIndex​(java.nio.file.Path rootPath)
    • Method Detail

      • findConfigurationDirectories

        public java.util.Set<java.nio.file.Path> findConfigurationDirectories​(java.lang.String groupId,
                                                                              java.lang.String artifactId)
        Returns the directory containing the candidate configurations for the given module.
        Specified by:
        findConfigurationDirectories in interface ModuleToConfigDirectoryIndex
        Parameters:
        groupId - the group of the module
        artifactId - the artifact of the module
        Returns:
        the configuration directory