Back to project page Broadsheet.ie-Android.
The source code is released under:
Copyright (c) 2013 Karl Monaghan (http://karlmonaghan.com/) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Soft...
If you think the Android project Broadsheet.ie-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package ie.broadsheet.app.services; //ww w .j a v a2 s . co m import android.app.Application; import com.octo.android.robospice.GoogleHttpClientSpiceService; import com.octo.android.robospice.persistence.CacheManager; import com.octo.android.robospice.persistence.exception.CacheCreationException; import com.octo.android.robospice.persistence.googlehttpclient.json.JacksonObjectPersisterFactory; public class BroadsheetServices extends GoogleHttpClientSpiceService { @Override public CacheManager createCacheManager(Application application) { CacheManager cacheManager = new CacheManager(); JacksonObjectPersisterFactory jacksonObjectPersisterFactory; try { jacksonObjectPersisterFactory = new JacksonObjectPersisterFactory(application); cacheManager.addPersister(jacksonObjectPersisterFactory); } catch (CacheCreationException e) { // TODO Auto-generated catch block e.printStackTrace(); } return cacheManager; } }