public class PropertiesModuleConfigRepository extends java.lang.Object implements ModuleConfigRepository
Constructor and Description |
---|
PropertiesModuleConfigRepository(java.nio.file.Path configDir) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<ModuleConfig> |
getModuleConfig(java.lang.String name) |
boolean |
moduleExists(java.lang.String name) |
static void |
writeXml(java.nio.file.Path configDir,
java.nio.file.Path xmlFile) |
public PropertiesModuleConfigRepository(java.nio.file.Path configDir)
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
public static void writeXml(java.nio.file.Path configDir, java.nio.file.Path xmlFile) throws java.io.IOException, javax.xml.stream.XMLStreamException
java.io.IOException
javax.xml.stream.XMLStreamException