|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.atunes.kernel.handlers.ApplicationDataHandler
public class ApplicationDataHandler
This class is responsible of read, write and apply application state, and caches.
Method Summary | |
---|---|
void |
applicationFinish()
Called when application finishes |
java.lang.Runnable |
getApplyStateRunnable()
Process to apply state. |
static ApplicationDataHandler |
getInstance()
Gets the single instance of ApplicationDataHandler. |
protected void |
persistDeviceCache(java.lang.String deviceId,
Repository deviceRepository)
|
boolean |
readState()
Read state stored. |
protected Repository |
retrieveDeviceCache(java.lang.String deviceId)
Reads device cache. |
protected Favorites |
retrieveFavoritesCache()
Reads repository cache. |
protected ListOfPlayLists |
retrievePlayListCache()
Reads play list cache. |
protected java.util.List<PodcastFeed> |
retrievePodcastFeedCache()
Reads podcast feed cache. |
protected java.util.List<Radio> |
retrieveRadioCache()
Reads radio cache. |
protected java.util.List<Radio> |
retrieveRadioPreset()
Reads radio cache. |
protected Repository |
retrieveRepositoryCache()
Reads repository cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ApplicationDataHandler getInstance()
public void applicationFinish()
ApplicationFinishListener
applicationFinish
in interface ApplicationFinishListener
public java.lang.Runnable getApplyStateRunnable()
protected void persistDeviceCache(java.lang.String deviceId, Repository deviceRepository)
public boolean readState()
protected Favorites retrieveFavoritesCache()
protected ListOfPlayLists retrievePlayListCache()
protected java.util.List<PodcastFeed> retrievePodcastFeedCache()
protected java.util.List<Radio> retrieveRadioCache()
protected java.util.List<Radio> retrieveRadioPreset()
protected Repository retrieveRepositoryCache()
protected Repository retrieveDeviceCache(java.lang.String deviceId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |