Search in sources :

Example 1 with GsonObjectPersisterFactory

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

Aggregations

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