Package com.powsybl.commons.config
Class PlatformConfig
java.lang.Object
com.powsybl.commons.config.PlatformConfig
- Direct Known Subclasses:
InMemoryPlatformConfig
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Path
protected final com.google.common.base.Supplier<ModuleConfigRepository>
-
Constructor Summary
ModifierConstructorDescriptionprotected
PlatformConfig
(com.google.common.base.Supplier<ModuleConfigRepository> repositorySupplier, Path configDir) PlatformConfig
(ModuleConfigRepository repository, Path configDir) -
Method Summary
Modifier and TypeMethodDescriptionstatic PlatformConfig
getModuleConfig
(String name) Deprecated.protected ModuleConfigRepository
static ModuleConfigRepository
loadModuleRepository
(Path configDir, String configName) Loads aModuleConfigRepository
from a single directory.boolean
moduleExists
(String name) Deprecated.Use theOptional
returned bygetOptionalModuleConfig(String)
static void
setDefaultConfig
(PlatformConfig defaultConfig) Deprecated.Directly passPlatformConfig
instance to the code you want to test.
-
Field Details
-
configDir
-
repositorySupplier
-
-
Constructor Details
-
PlatformConfig
-
PlatformConfig
protected PlatformConfig(com.google.common.base.Supplier<ModuleConfigRepository> repositorySupplier, Path configDir)
-
-
Method Details
-
setDefaultConfig
Deprecated.Directly passPlatformConfig
instance to the code you want to test. -
loadModuleRepository
Loads aModuleConfigRepository
from a single directory. Reads from yaml file if it exists, else from xml file, else from properties file. -
defaultConfig
-
getConfigDir
-
getRepository
-
moduleExists
Deprecated.Use theOptional
returned bygetOptionalModuleConfig(String)
-
getModuleConfig
Deprecated.UsegetOptionalModuleConfig(String)
instead -
getOptionalModuleConfig
-
getOptionalModuleConfig(String)
instead