Class PulsarConfigLoader
java.lang.Object
io.numaproj.pulsar.config.PulsarConfigLoader
Loads and parses the application.yml configuration into typed property objects.
Resolves ${VAR} and ${VAR:default} placeholders against the process environment.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBundle of all four config sections parsed from application.yml. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadConfig(InputStream yamlInputStream) Loads Pulsar config from a YAML input stream.loadConfig(Path configPath) Loads Pulsar config from a YAML file.
-
Constructor Details
-
PulsarConfigLoader
public PulsarConfigLoader()
-
-
Method Details
-
loadConfig
Loads Pulsar config from a YAML file.- Parameters:
configPath- the path to the YAML config file- Returns:
- the parsed config object
- Throws:
IOException- if the file cannot be read
-
loadConfig
Loads Pulsar config from a YAML input stream.- Parameters:
yamlInputStream- the source of YAML content- Returns:
- the parsed config object
-