Default Config Loader
Default implementation of ConfigLoader that loads, validates, and updates a configuration object from a file using a ConfigParser.
This loader handles the following:
Loading the configuration object from a file
Performing null/default value injection for missing fields
Validating fields based on annotations such as Required, Range, and Default
Automatically applying update strategies registered for the parser type
Typically created via a net.ririfa.yacla.loader.ConfigLoaderBuilder, not instantiated directly.
Parameters
the type of the configuration object
the target configuration class
the parser to deserialize the configuration
the path to the configuration file
optional logger for diagnostics
the path to the resource used for updating configs
Constructors
Properties
Functions
Fills in null or blank fields with default values if applicable.
Reloads the configuration object from the backing file.
Attempts to update the configuration file by merging the default resource with the current file, preserving user-defined values.
Validates the configuration object based on field annotations such as net.ririfa.yacla.annotation.Required and net.ririfa.yacla.annotation.Range.