Search in sources :

Example 1 with JacksonObjectPersisterFactory

use of com.octo.android.robospice.persistence.springandroid.json.jackson.JacksonObjectPersisterFactory in project robospice by stephanenicolas.

the class SpringAndroidTestService method createCacheManager.

@Override
public CacheManager createCacheManager(Application application) throws CacheCreationException {
    CacheManager cacheManager = new CacheManager();
    cacheManager.addPersister(new JacksonObjectPersisterFactory(application, new File("/")));
    return cacheManager;
}
Also used : JacksonObjectPersisterFactory(com.octo.android.robospice.persistence.springandroid.json.jackson.JacksonObjectPersisterFactory) CacheManager(com.octo.android.robospice.persistence.CacheManager) File(java.io.File)

Example 2 with JacksonObjectPersisterFactory

use of com.octo.android.robospice.persistence.springandroid.json.jackson.JacksonObjectPersisterFactory in project robospice by stephanenicolas.

the class JacksonSpringAndroidSpiceService method createCacheManager.

@Override
public CacheManager createCacheManager(Application application) throws CacheCreationException {
    CacheManager cacheManager = new CacheManager();
    cacheManager.addPersister(new JacksonObjectPersisterFactory(application));
    return cacheManager;
}
Also used : JacksonObjectPersisterFactory(com.octo.android.robospice.persistence.springandroid.json.jackson.JacksonObjectPersisterFactory) CacheManager(com.octo.android.robospice.persistence.CacheManager)

Aggregations

CacheManager (com.octo.android.robospice.persistence.CacheManager)2 JacksonObjectPersisterFactory (com.octo.android.robospice.persistence.springandroid.json.jackson.JacksonObjectPersisterFactory)2 File (java.io.File)1