ConfigLoaderBuilder

Builder interface for configuring and creating a ConfigLoader instance.

Provides a fluent API for specifying where to load the configuration from, which parser to use, and logging and auto-update behaviors.

Inheritors

Functions

Link copied to clipboard

Enables or disables automatic config updates based on resource version.

Link copied to clipboard

Specifies the path to the resource file bundled with the application. Used as a fallback or for initial creation.

Link copied to clipboard
abstract fun load(): ConfigLoader<T>

Builds and loads the config, returning a ConfigLoader instance.

Link copied to clipboard
abstract fun parser(parser: ConfigParser): ConfigLoaderBuilder<T>

Sets the parser used to read and write the config file.

Link copied to clipboard
abstract fun schema(schema: YaclaSchema<T>): ConfigLoaderBuilder<T>

Sets the schema used for validating and mapping the config data.

Link copied to clipboard
abstract fun toFile(file: Path): ConfigLoaderBuilder<T>

Sets the file where the configuration will be loaded from or saved to.

Link copied to clipboard

Sets the logger used for informational and error messages.