Search in sources :

Example 1 with CacheManager

use of com.octo.android.robospice.persistence.CacheManager 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)

Example 2 with CacheManager

use of com.octo.android.robospice.persistence.CacheManager in project robospice by stephanenicolas.

the class Jackson2GoogleHttpClientSpiceService method createCacheManager.

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

Example 3 with CacheManager

use of com.octo.android.robospice.persistence.CacheManager in project robospice by stephanenicolas.

the class JacksonGoogleHttpClientSpiceService 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.googlehttpclient.json.JacksonObjectPersisterFactory) CacheManager(com.octo.android.robospice.persistence.CacheManager)

Example 4 with CacheManager

use of com.octo.android.robospice.persistence.CacheManager in project robospice by stephanenicolas.

the class GoogleHttpClientSpiceTestService method createCacheManager.

@Override
public CacheManager createCacheManager(Application application) {
    CacheManager cacheManager = new CacheManager();
    try {
        JacksonObjectPersisterFactory jacksonObjectPersisterFactory = new JacksonObjectPersisterFactory(application, new File("/"));
        cacheManager.addPersister(jacksonObjectPersisterFactory);
    } catch (CacheCreationException e) {
        Ln.e(e);
    }
    return cacheManager;
}
Also used : JacksonObjectPersisterFactory(com.octo.android.robospice.persistence.googlehttpclient.json.JacksonObjectPersisterFactory) CacheCreationException(com.octo.android.robospice.persistence.exception.CacheCreationException) CacheManager(com.octo.android.robospice.persistence.CacheManager) File(java.io.File)

Example 5 with CacheManager

use of com.octo.android.robospice.persistence.CacheManager in project robospice by stephanenicolas.

the class OkHttpBitmapSpiceService method createCacheManager.

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

Aggregations

CacheManager (com.octo.android.robospice.persistence.CacheManager)15 InFileBitmapObjectPersister (com.octo.android.robospice.persistence.binary.InFileBitmapObjectPersister)2 JacksonObjectPersisterFactory (com.octo.android.robospice.persistence.googlehttpclient.json.JacksonObjectPersisterFactory)2 JacksonObjectPersisterFactory (com.octo.android.robospice.persistence.springandroid.json.jackson.JacksonObjectPersisterFactory)2 Jackson2ObjectPersisterFactory (com.octo.android.robospice.persistence.springandroid.json.jackson2.Jackson2ObjectPersisterFactory)2 File (java.io.File)2 CacheCreationException (com.octo.android.robospice.persistence.exception.CacheCreationException)1 GsonObjectPersisterFactory (com.octo.android.robospice.persistence.googlehttpclient.json.GsonObjectPersisterFactory)1 Jackson2ObjectPersisterFactory (com.octo.android.robospice.persistence.googlehttpclient.json.Jackson2ObjectPersisterFactory)1 GsonRetrofitObjectPersisterFactory (com.octo.android.robospice.persistence.retrofit.GsonRetrofitObjectPersisterFactory)1 RetrofitObjectPersisterFactory (com.octo.android.robospice.persistence.retrofit.RetrofitObjectPersisterFactory)1 GsonObjectPersisterFactory (com.octo.android.robospice.persistence.springandroid.json.gson.GsonObjectPersisterFactory)1 SimpleSerializerObjectPersisterFactory (com.octo.android.robospice.persistence.springandroid.xml.SimpleSerializerObjectPersisterFactory)1 DoubleInMemoryPersisterStub (com.octo.android.robospice.stub.DoubleInMemoryPersisterStub)1 IntegerPersisterStub (com.octo.android.robospice.stub.IntegerPersisterStub)1 StringPersisterStub (com.octo.android.robospice.stub.StringPersisterStub)1