public final class EnvironmentModuleConfigRepository extends Object implements ModuleConfigRepository
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.Constructor and Description |
---|
EnvironmentModuleConfigRepository(Map<String,String> map,
FileSystem fileSystem) |
Modifier and Type | Method and Description |
---|---|
Optional<ModuleConfig> |
getModuleConfig(String name) |
boolean |
moduleExists(String name) |
public EnvironmentModuleConfigRepository(Map<String,String> map, FileSystem fileSystem)
public boolean moduleExists(String name)
moduleExists
in interface ModuleConfigRepository
public Optional<ModuleConfig> getModuleConfig(String name)
getModuleConfig
in interface ModuleConfigRepository
Copyright © 2020. All rights reserved.