Search in sources :

Example 1 with GsonObjectPersisterFactory

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

Aggregations

CacheManager (com.octo.android.robospice.persistence.CacheManager)1 GsonObjectPersisterFactory (com.octo.android.robospice.persistence.springandroid.json.gson.GsonObjectPersisterFactory)1