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()

Removes all cached MOTECH settings.

getActiveMqConfig

Properties getActiveMqConfig()

Returns the ActiveMq properties.

Returns:activeMq properties.

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.

loadDatanucleusDataConfig

Properties loadDatanucleusDataConfig()

Loads the datanucleus configuration for data database

Returns:datanucleus configuration for data database

loadDatanucleusSchemaConfig

Properties loadDatanucleusSchemaConfig()

Loads the datanucleus configuration for schema database

Returns:datanucleus configuration for schema database

loadFlywayDataConfig

Properties loadFlywayDataConfig()

Loads the Flyway configuration for the data database.

Returns:Flyway configuration for the data database

loadFlywaySchemaConfig

Properties loadFlywaySchemaConfig()

Loads the Flyway configuration for the schema database.

Returns:Flyway configuration for the schema database

saveBootstrapConfig

void saveBootstrapConfig(BootstrapConfig bootstrapConfig)

Saves the bootstrap configuration

Parameters:
  • bootstrapConfig – Bootstrap config