Class ConfigServiceImpl
java.lang.Object
net.datenwerke.rs.configservice.service.configservice.ConfigServiceImpl
- All Implemented Interfaces:
ConfigService
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Constructor Summary
ConstructorsConstructorDescriptionConfigServiceImpl(FileServerService fileService, TerminalService terminalService, HookHandlerService hookHandler, <any> packagedScriptHelperProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclearCache(String identifier) extractBasicConfigFilesTo(String folderName) Extracts a copy of the basic configuration files to a given sub-directory of root.ConfigurationConfigurationgetConfigAsXml(String identifier) getConfigAsXmlFailsafe(String identifier) ConfigurationgetConfigFailsafe(String identifier) <any>getConfigProvider(String identifier) ConfigurationparseConfigList(Configuration config, String identifier) voidstoreConfig(Configuration config, String identifier)
-
Constructor Details
-
Method Details
-
getConfigProvider
-
getConfigFailsafe
- Specified by:
getConfigFailsafein interfaceConfigService
-
getConfig
- Specified by:
getConfigin interfaceConfigService
-
getConfigAsXml
- Specified by:
getConfigAsXmlin interfaceConfigService
-
getConfigAsXmlFailsafe
- Specified by:
getConfigAsXmlFailsafein interfaceConfigService
-
getConfig
- Specified by:
getConfigin interfaceConfigService
-
newConfig
public Configuration newConfig()- Specified by:
newConfigin interfaceConfigService
-
storeConfig
- Specified by:
storeConfigin interfaceConfigService
-
clearCache
- Specified by:
clearCachein interfaceConfigService
-
clearCache
public void clearCache()- Specified by:
clearCachein interfaceConfigService
-
extractBasicConfigFilesTo
public FileServerFolder extractBasicConfigFilesTo(String folderName) throws FileNotFoundException, IOException Description copied from interface:ConfigServiceExtracts a copy of the basic configuration files to a given sub-directory of root. If the specified folder is not already present it will be created- Specified by:
extractBasicConfigFilesToin interfaceConfigService- Parameters:
folderName- name of the folder in which files should be copied- Returns:
- the folder where the configuration files were copied to
- Throws:
FileNotFoundExceptionIOException
-
parseConfigList
- Specified by:
parseConfigListin interfaceConfigService
-