ro.isdc.wro.model.resource.support.change
Class ResourceWatcher
java.lang.Object
ro.isdc.wro.model.resource.support.change.ResourceWatcher
public class ResourceWatcher
- extends Object
A runnable responsible for watching if any resources were changed and invalidate the cache entry for the group
containing obsolete resources. This class is thread-safe.
- Since:
- 1.4.8
- Author:
- Alex Objelean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceWatcher
public ResourceWatcher()
check
public void check(CacheKey cacheEntry)
- Check if resources from a group were changed. If a change is detected, the changeListener will be invoked.
- Parameters:
cacheEntry
- the cache key which was requested. The key contains the groupName which has to be checked for changes.
onException
protected void onException(Exception e)
- Invoked when exception occurs.
Copyright © 2008-2013. All Rights Reserved.