public final class EnvironmentModuleConfigRepository extends java.lang.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(java.util.Map<java.lang.String,java.lang.String> map,
java.nio.file.FileSystem fileSystem) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<ModuleConfig> |
getModuleConfig(java.lang.String name) |
boolean |
moduleExists(java.lang.String name) |
public EnvironmentModuleConfigRepository(java.util.Map<java.lang.String,java.lang.String> map, java.nio.file.FileSystem fileSystem)
public boolean moduleExists(java.lang.String name)
moduleExists
in interface ModuleConfigRepository
public java.util.Optional<ModuleConfig> getModuleConfig(java.lang.String name)
getModuleConfig
in interface ModuleConfigRepository