Class CachedConfigReader
java.lang.Object
org.pipservices3.components.config.CachedConfigReader
- All Implemented Interfaces:
org.pipservices3.commons.config.IConfigurable,org.pipservices3.commons.config.IReconfigurable,IConfigReader
public abstract class CachedConfigReader extends Object implements IConfigReader, org.pipservices3.commons.config.IReconfigurable
-
Constructor Summary
Constructors Constructor Description CachedConfigReader() -
Method Summary
Modifier and Type Method Description voidconfigure(org.pipservices3.commons.config.ConfigParams config)longgetTimeout()protected abstract org.pipservices3.commons.config.ConfigParamsperformReadConfig(String correlationId, org.pipservices3.commons.config.ConfigParams parameters)org.pipservices3.commons.config.ConfigParamsreadConfig(String correlationId, org.pipservices3.commons.config.ConfigParams parameters)Reads configuration and parameterize it with given values.org.pipservices3.commons.config.ConfigParamsreadConfigSection(String correlationId, org.pipservices3.commons.config.ConfigParams parameters, String section)voidsetTimeout(long value)
-
Constructor Details
-
CachedConfigReader
public CachedConfigReader()
-
-
Method Details
-
getTimeout
public long getTimeout() -
setTimeout
public void setTimeout(long value) -
configure
public void configure(org.pipservices3.commons.config.ConfigParams config)- Specified by:
configurein interfaceorg.pipservices3.commons.config.IConfigurable
-
performReadConfig
protected abstract org.pipservices3.commons.config.ConfigParams performReadConfig(String correlationId, org.pipservices3.commons.config.ConfigParams parameters) throws org.pipservices3.commons.errors.ApplicationException- Throws:
org.pipservices3.commons.errors.ApplicationException
-
readConfig
public org.pipservices3.commons.config.ConfigParams readConfig(String correlationId, org.pipservices3.commons.config.ConfigParams parameters) throws org.pipservices3.commons.errors.ApplicationExceptionDescription copied from interface:IConfigReaderReads configuration and parameterize it with given values.- Specified by:
readConfigin interfaceIConfigReader- 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.
-
readConfigSection
public org.pipservices3.commons.config.ConfigParams readConfigSection(String correlationId, org.pipservices3.commons.config.ConfigParams parameters, String section) throws org.pipservices3.commons.errors.ApplicationException- Throws:
org.pipservices3.commons.errors.ApplicationException
-