Search in sources :

Example 1 with RetrofitObjectPersisterFactory

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

Aggregations

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