public class InvalidateSitemapSaxerCacheObserver extends AbstractCacheObserver implements Serviceable
SitemapSaxer
's cache used by the SitemapInputData
.Modifier and Type | Field and Description |
---|---|
private List<String> |
_defaultWorkspaceEvents |
private List<String> |
_liveWorkspaceEvents |
private SiteManager |
_siteManager |
private SitemapSaxer |
_sitemapSaxer |
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
InvalidateSitemapSaxerCacheObserver() |
Modifier and Type | Method and Description |
---|---|
private void |
_clearCache(Site site,
boolean defaultWorkspace,
boolean liveWorkspace) |
private void |
_clearCache(String workspace,
Site site) |
void |
observe(Event event,
Map<String,Object> transientVars)
Observes an event.
|
void |
service(ServiceManager manager) |
boolean |
supports(Event event)
Checks if the event is supported.
|
getPriority
getLogger, setLogger
private SiteManager _siteManager
private SitemapSaxer _sitemapSaxer
private List<String> _defaultWorkspaceEvents
private List<String> _liveWorkspaceEvents
public InvalidateSitemapSaxerCacheObserver()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public boolean supports(Event event)
Observer
public void observe(Event event, Map<String,Object> transientVars) throws Exception
Observer
observe
in interface Observer
event
- the event.transientVars
- transientVars passed from one Observer to another when processing a single Event.
This may allow optimizations between observers.Exception
- if an error occurs.
All exceptions will be logged but not propagated, as the observation mechanism should never fail.private void _clearCache(Site site, boolean defaultWorkspace, boolean liveWorkspace)
private void _clearCache(String workspace, Site site)