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
AModuleConfigRepository
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
-
-
Constructor Summary
Constructors Constructor Description EnvironmentModuleConfigRepository(Map<String,String> map, FileSystem fileSystem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ModuleConfig>
getModuleConfig(String name)
-
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 Detail
-
EnvironmentModuleConfigRepository
public EnvironmentModuleConfigRepository(Map<String,String> map, FileSystem fileSystem)
-
-
Method Detail
-
getModuleConfig
public Optional<ModuleConfig> getModuleConfig(String name)
- Specified by:
getModuleConfig
in interfaceModuleConfigRepository
-
-