|
||||||||||
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 | |
---|---|
java.lang.Runnable |
getApplyStateRunnable()
Process to apply state. |
static ApplicationDataHandler |
getInstance()
Gets the single instance of ApplicationDataHandler. |
void |
persistFavoritesCache(Favorites favorites)
Stores favorites cache. |
void |
persistPlayList()
Stores play lists. |
void |
persistPodcastFeedCache(java.util.List<PodcastFeed> podcastFeeds)
Stores podcast feeds. |
void |
persistPresetRadioCache(java.util.List<Radio> radios)
Persist preset radio cache. |
void |
persistRadioCache(java.util.List<Radio> radios)
Stores radios. |
void |
persistRepositoryCache(Repository repository)
Stores repository cache. |
boolean |
readState()
Read state stored. |
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. |
void |
storeState()
Stores state. |
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 java.lang.Runnable getApplyStateRunnable()
public void persistFavoritesCache(Favorites favorites)
favorites
- Favorites that should be persistedpublic void persistPlayList()
public void persistPodcastFeedCache(java.util.List<PodcastFeed> podcastFeeds)
podcastFeeds
- Podcast feeds that should be persistpublic void persistRadioCache(java.util.List<Radio> radios)
radios
- Radios that should be persistedpublic void persistPresetRadioCache(java.util.List<Radio> radios)
radios
- the radiospublic void persistRepositoryCache(Repository repository)
repository
- The retrieved repositorypublic 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()
public void storeState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |