Class YalConfig
java.lang.Object
io.sbk.config.YalConfig
Class YalConfig.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty YAML launcher configuration for property binding. -
Method Summary
Modifier and TypeMethodDescriptionstatic YalConfigload(ClassLoader classLoader, String configFile) Loads and validates YAML launcher defaults from a class-path resource.
-
Field Details
-
FILE_OPTION
-
FILE_OPTION_ARG
-
PRINT_OPTION
-
PRINT_OPTION_ARG
PRINT_OPTION_ARG = ARG_PREFIX + PRINT_OPTION;.- See Also:
-
yamlFileName
String yamlFileName.
-
-
Constructor Details
-
YalConfig
public YalConfig()Creates an empty YAML launcher configuration for property binding.
-
-
Method Details
-
load
Loads and validates YAML launcher defaults from a class-path resource.- Parameters:
classLoader- class loader that owns the launcher resourceconfigFile- class-path properties resource name- Returns:
- validated YAML launcher configuration
- Throws:
IOException- if the resource is missing or cannot be parsedIllegalArgumentException- if a required default is empty
-