Search in sources :

Example 1 with GsonRetrofitObjectPersisterFactory

use of com.octo.android.robospice.persistence.retrofit.GsonRetrofitObjectPersisterFactory 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;
}
Also used : GsonRetrofitObjectPersisterFactory(com.octo.android.robospice.persistence.retrofit.GsonRetrofitObjectPersisterFactory) CacheManager(com.octo.android.robospice.persistence.CacheManager)

Aggregations

CacheManager (com.octo.android.robospice.persistence.CacheManager)1 GsonRetrofitObjectPersisterFactory (com.octo.android.robospice.persistence.retrofit.GsonRetrofitObjectPersisterFactory)1