ConfigLoader

public class ConfigLoader

Config loader used to load the platform core settings.

Methods

findExistingConfigs

public List<File> findExistingConfigs()

Finds all configurations from the configuration location.

Throws:
  • IOException – If there is any error while handling the files.

loadDefaultConfig

public SettingsRecord loadDefaultConfig()

Loads default MOTECH settings.

Returns:the {SettingsRecord} object

loadMotechSettings

public SettingsRecord loadMotechSettings()

Loads MOTECH settings containing core platform settings.

Returns:the {SettingsRecord} object

setCoreConfigurationService

public void setCoreConfigurationService(CoreConfigurationService coreConfigurationService)

setResourceLoader

public void setResourceLoader(ResourceLoader resourceLoader)