Interface IConfigReader
- All Known Implementing Classes:
CachedConfigReader
,ConfigReader
,FileConfigReader
,JsonConfigReader
,MemoryConfigReader
,YamlConfigReader
public interface IConfigReader
Interface for configuration readers that retrieve configuration from various sources
and make it available for other components.
Some IConfigReader implementations may support configuration parameterization. The parameterization allows to use configuration as a template and inject there dynamic values. The values may come from application command like arguments or environment variables.
-
Method Summary
Modifier and Type Method Description org.pipservices3.commons.config.ConfigParams
readConfig(String correlationId, org.pipservices3.commons.config.ConfigParams parameters)
Reads configuration and parameterize it with given values.
-
Method Details
-
readConfig
org.pipservices3.commons.config.ConfigParams readConfig(String correlationId, org.pipservices3.commons.config.ConfigParams parameters) throws org.pipservices3.commons.errors.ApplicationExceptionReads configuration and parameterize it with given values.- Parameters:
correlationId
- (optional) transaction id to trace execution through call chain.parameters
- values to parameters the configuration or null to skip parameterization.- Returns:
- ConfigParams configuration.
- Throws:
org.pipservices3.commons.errors.ApplicationException
- when error occured.
-