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 NewsCachesource - the NewsSource that was savedpublic void updateSource(NewsSource source)
updateSource in interface NewsCachefeed - 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.ApplicationContextAwarepublic Map<Long,NewsSource> getNewsSources()
getNewsSources in interface NewsCachepublic void setNewsSources(Map<Long,NewsSource> newsSources)
setNewsSources in interface NewsCacheCopyright © 2011-2014 The Kuali Foundation. All Rights Reserved.