com.octo.android.robospice.persistence.exception.CacheCreationException Java Examples
The following examples show how to use
com.octo.android.robospice.persistence.exception.CacheCreationException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NetworkService.java From android-atleap with Apache License 2.0 | 5 votes |
@Override public CacheManager createCacheManager(Application application) throws CacheCreationException { CacheManager cacheManager = new CacheManager(); OrmLiteUriMatcher matcher = OrmLiteUriMatcher.getInstance(DefaultUriMatcher.class, DefaultContract.CONTENT_AUTHORITY); // init RoboSpiceDatabaseHelper databaseHelper = new RoboSpiceDatabaseHelper(application, DefaultDatabaseHelper.DATABASE_NAME, DefaultDatabaseHelper.DATABASE_VERSION); InDatabaseObjectPersisterFactory inDatabaseObjectPersisterFactory = new InDatabaseObjectPersisterFactory( application, databaseHelper, matcher.getClassToNotificationUriMap() ); cacheManager.addPersister(inDatabaseObjectPersisterFactory); return cacheManager; }
Example #2
Source File: TestRobospiceService.java From android-atleap with Apache License 2.0 | 5 votes |
@Override public CacheManager createCacheManager(Application application) throws CacheCreationException { CacheManager cacheManager = new CacheManager(); TestUriMatcher matcher = SQLiteUriMatcher.getInstance(TestUriMatcher.class, TestContract.CONTENT_AUTHORITY); // init RoboSpiceDatabaseHelper databaseHelper = new RoboSpiceDatabaseHelper(application, TestDatabaseHelper.DATABASE_NAME, TestDatabaseHelper.DATABASE_VERSION); InDatabaseObjectPersisterFactory inDatabaseObjectPersisterFactory = new InDatabaseObjectPersisterFactory( application, databaseHelper, matcher.getClassToNotificationUriMap() ); cacheManager.addPersister(inDatabaseObjectPersisterFactory); return cacheManager; }
Example #3
Source File: BroadsheetServices.java From Broadsheet.ie-Android with MIT License | 5 votes |
@Override public CacheManager createCacheManager(Application application) { CacheManager cacheManager = new CacheManager(); JacksonObjectPersisterFactory jacksonObjectPersisterFactory; try { jacksonObjectPersisterFactory = new JacksonObjectPersisterFactory(application); cacheManager.addPersister(jacksonObjectPersisterFactory); } catch (CacheCreationException e) { // TODO Auto-generated catch block e.printStackTrace(); } return cacheManager; }
Example #4
Source File: OfflineSpiceService.java From MultiImagePicker with MIT License | 4 votes |
@Override public CacheManager createCacheManager(Application application) throws CacheCreationException { return new CacheManager(); }