Interface PathProvider


public interface PathProvider
Provides a base directory context for resolving configuration file paths. This interface abstracts the file system location, allowing configurations to be stored relative to a specific root folder.
Since:
0.1
Author:
a8kj7sea
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the root directory from which all configuration paths are resolved.
    default File
    resolve(String relativePath)
    Resolves a relative path string against the base directory to produce a File object.
  • Method Details

    • getBaseDirectory

      Path getBaseDirectory()
      Retrieves the root directory from which all configuration paths are resolved.
      Returns:
      the base Path directory.
      Since:
      0.1
    • resolve

      default File resolve(String relativePath)
      Resolves a relative path string against the base directory to produce a File object.
      Parameters:
      relativePath - the relative path to the configuration file.
      Returns:
      a File object representing the resolved path.
      Since:
      0.1