Search in sources :

Example 1 with CacheRepository

use of org.mifos.config.cache.CacheRepository in project head by mifos.

the class ConfigurationInitializer method initialize.

public void initialize() {
    try {
        CacheRepository cacheRepository = CacheRepository.getInstance();
        cacheRepository.setSystemConfiguration(createSystemConfiguration());
        cacheRepository.setOfficeCache(createOfficeCache());
    } catch (SystemException se) {
        throw new StartUpException(se);
    } catch (ApplicationException e) {
        throw new StartUpException(e);
    }
}
Also used : ApplicationException(org.mifos.framework.exceptions.ApplicationException) SystemException(org.mifos.framework.exceptions.SystemException) StartUpException(org.mifos.framework.exceptions.StartUpException) CacheRepository(org.mifos.config.cache.CacheRepository)

Aggregations

CacheRepository (org.mifos.config.cache.CacheRepository)1 ApplicationException (org.mifos.framework.exceptions.ApplicationException)1 StartUpException (org.mifos.framework.exceptions.StartUpException)1 SystemException (org.mifos.framework.exceptions.SystemException)1