public class NewsCacheImpl extends Object implements NewsCache, org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
NewsCacheImpl() |
Modifier and Type | Method and Description |
---|---|
org.springframework.context.ApplicationContext |
getApplicationContext() |
Map<Long,NewsSource> |
getNewsSources() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setNewsSources(Map<Long,NewsSource> newsSources) |
void |
updateCache(NewsSource source)
Update the cache for a single NewsSource.
|
void |
updateSource(NewsSource source)
Does the actual work of updating a news feed and its articles
|
public NewsCacheImpl()
public void updateCache(NewsSource source)
updateCache
in interface NewsCache
source
- the NewsSource that was savedpublic void updateSource(NewsSource source)
updateSource
in interface NewsCache
feed
- the NewsFeed to updatesource
- the NewsSource that defines the feed to updatepublic org.springframework.context.ApplicationContext getApplicationContext()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
public Map<Long,NewsSource> getNewsSources()
getNewsSources
in interface NewsCache
public void setNewsSources(Map<Long,NewsSource> newsSources)
setNewsSources
in interface NewsCache
Copyright © 2011-2013 The Kuali Foundation. All Rights Reserved.