Package com.powsybl.commons.config
Class EnvironmentModuleConfigRepository
java.lang.Object
com.powsybl.commons.config.EnvironmentModuleConfigRepository
- All Implemented Interfaces:
ModuleConfigRepository
public final class EnvironmentModuleConfigRepository
extends Object
implements ModuleConfigRepository
A
ModuleConfigRepository
designed to read property values
from the map of environment variables.
For a configuration property named "property-name" in module "module-name",
the expected environment variables name is MODULE_NAME__PROPERTY_NAME.
CamelCase names are also translated to underscore-separated names.- Author:
- Yichen TANG <yichen.tang at rte-france.com>
-
Constructor Summary
ConstructorDescriptionEnvironmentModuleConfigRepository
(Map<String, String> map, FileSystem fileSystem) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.powsybl.commons.config.ModuleConfigRepository
moduleExists
-
Constructor Details
-
EnvironmentModuleConfigRepository
-
-
Method Details
-
getModuleConfig
- Specified by:
getModuleConfig
in interfaceModuleConfigRepository
-