use of com.octo.android.robospice.persistence.CacheManager in project robospice by stephanenicolas.
the class RetrofitGsonSpiceService method createCacheManager.
@Override
public CacheManager createCacheManager(Application application) throws CacheCreationException {
CacheManager cacheManager = new CacheManager();
cacheManager.addPersister(new GsonRetrofitObjectPersisterFactory(application, getConverter(), getCacheFolder()));
return cacheManager;
}
use of com.octo.android.robospice.persistence.CacheManager in project robospice by stephanenicolas.
the class RetrofitJackson2SpiceService method createCacheManager.
@Override
public CacheManager createCacheManager(Application application) throws CacheCreationException {
CacheManager cacheManager = new CacheManager();
cacheManager.addPersister(new RetrofitObjectPersisterFactory(application, getConverter(), getCacheFolder()));
return cacheManager;
}
use of com.octo.android.robospice.persistence.CacheManager in project robospice by stephanenicolas.
the class GsonSpringAndroidSpiceService 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 XmlSpringAndroidSpiceService method createCacheManager.
@Override
public CacheManager createCacheManager(Application application) throws CacheCreationException {
CacheManager cacheManager = new CacheManager();
cacheManager.addPersister(new SimpleSerializerObjectPersisterFactory(application));
return cacheManager;
}
use of com.octo.android.robospice.persistence.CacheManager in project robospice by stephanenicolas.
the class SpiceTestService method createCacheManager.
@Override
public CacheManager createCacheManager(Application application) {
CacheManager cacheManager = new CacheManager();
StringPersisterStub stringPersisterStub = new StringPersisterStub(application);
IntegerPersisterStub integerPersisterStub = new IntegerPersisterStub(application);
DoubleInMemoryPersisterStub doubleInMemoryPersisterStub = new DoubleInMemoryPersisterStub(application);
cacheManager.addPersister(stringPersisterStub);
cacheManager.addPersister(integerPersisterStub);
cacheManager.addPersister(doubleInMemoryPersisterStub);
return cacheManager;
}
Aggregations