CoreConfigurationService

public interface CoreConfigurationService

Loads and saves the core configuration required to start the Motech instance.

Fields

CORE_SETTINGS_CACHE_NAME

String CORE_SETTINGS_CACHE_NAME

Methods

addConfigLocation

void addConfigLocation(String location)

Adds the new config location to the list of existing config locations where configurations are loaded from in the file system.

Parameters:
  • location – config location to add.
Throws:
  • FileSystemException

evictMotechCoreSettingsCache

void evictMotechCoreSettingsCache()

getConfigLocation

ConfigLocation getConfigLocation()

Returns the config location where all the config files are present.

Returns:configLocation.

loadBootstrapConfig

BootstrapConfig loadBootstrapConfig()

Loads the bootstrap configuration.

Returns:bootstrap configuration.

saveBootstrapConfig

void saveBootstrapConfig(BootstrapConfig bootstrapConfig)

Saves the bootstrap configuration

Parameters:
  • bootstrapConfig – Bootstrap config