Search in sources :

Example 1 with ApiSystemCodeDao

use of gov.ca.cwds.data.persistence.cms.ApiSystemCodeDao in project api-core by ca-cwds.

the class CmsSystemCodeCacheLoader method main.

public static void main(String[] args) {
    try {
        ApiSystemCodeDao dao = new SystemCodeDaoFileImpl();
        if (args.length > 1) {
        // dao = new FileSystemCodeDao(new File(args[0]));
        }
        ApiSystemCodeCache cache = new CmsSystemCodeCacheService(dao);
    } catch (ServiceException e) {
        LOGGER.error("FATAL ERROR", e);
    }
}
Also used : CmsSystemCodeCacheService(gov.ca.cwds.data.persistence.cms.CmsSystemCodeCacheService) SystemCodeDaoFileImpl(gov.ca.cwds.data.persistence.cms.SystemCodeDaoFileImpl) ServiceException(gov.ca.cwds.rest.services.ServiceException) ApiSystemCodeDao(gov.ca.cwds.data.persistence.cms.ApiSystemCodeDao) ApiSystemCodeCache(gov.ca.cwds.data.persistence.cms.ApiSystemCodeCache)

Aggregations

ApiSystemCodeCache (gov.ca.cwds.data.persistence.cms.ApiSystemCodeCache)1 ApiSystemCodeDao (gov.ca.cwds.data.persistence.cms.ApiSystemCodeDao)1 CmsSystemCodeCacheService (gov.ca.cwds.data.persistence.cms.CmsSystemCodeCacheService)1 SystemCodeDaoFileImpl (gov.ca.cwds.data.persistence.cms.SystemCodeDaoFileImpl)1 ServiceException (gov.ca.cwds.rest.services.ServiceException)1