use of com.octo.android.robospice.persistence.googlehttpclient.json.JacksonObjectPersisterFactory in project robospice by stephanenicolas.
the class JacksonGoogleHttpClientSpiceService method createCacheManager.
@Override
public CacheManager createCacheManager(Application application) throws CacheCreationException {
CacheManager cacheManager = new CacheManager();
cacheManager.addPersister(new JacksonObjectPersisterFactory(application));
return cacheManager;
}
use of com.octo.android.robospice.persistence.googlehttpclient.json.JacksonObjectPersisterFactory in project robospice by stephanenicolas.
the class GoogleHttpClientSpiceTestService method createCacheManager.
@Override
public CacheManager createCacheManager(Application application) {
CacheManager cacheManager = new CacheManager();
try {
JacksonObjectPersisterFactory jacksonObjectPersisterFactory = new JacksonObjectPersisterFactory(application, new File("/"));
cacheManager.addPersister(jacksonObjectPersisterFactory);
} catch (CacheCreationException e) {
Ln.e(e);
}
return cacheManager;
}
Aggregations