use of com.octo.android.robospice.persistence.CacheManager in project robospice by stephanenicolas.
the class GsonGoogleHttpClientSpiceService method createCacheManager.
@Override
public CacheManager createCacheManager(Application application) throws CacheCreationException {
CacheManager cacheManager = new CacheManager();
cacheManager.addPersister(new GsonObjectPersisterFactory(application));
return cacheManager;
}
use of com.octo.android.robospice.persistence.CacheManager in project robospice by stephanenicolas.
the class Jackson2GoogleHttpClientSpiceService method createCacheManager.
@Override
public CacheManager createCacheManager(Application application) throws CacheCreationException {
CacheManager cacheManager = new CacheManager();
cacheManager.addPersister(new Jackson2ObjectPersisterFactory(application));
return cacheManager;
}
use of com.octo.android.robospice.persistence.CacheManager 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.CacheManager 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;
}
use of com.octo.android.robospice.persistence.CacheManager in project robospice by stephanenicolas.
the class OkHttpBitmapSpiceService method createCacheManager.
@Override
public CacheManager createCacheManager(Application application) throws CacheCreationException {
CacheManager cacheManager = new CacheManager();
InFileBitmapObjectPersister inFileBitmapObjectPersister = new InFileBitmapObjectPersister(application);
cacheManager.addPersister(inFileBitmapObjectPersister);
return cacheManager;
}
Aggregations