- All Known Implementing Classes:
public interface ResourceChangeTracker extends InvalidationEventHub, ResourceDependenciesTracks resources (at least, resources that can change because they are on the file system) and acts as an
UpdateListenerto check for changes and notify its listeners.
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
forceInvalidationEvent()Forces an invalidation event.
trackResource(Resource resource)Start tracking the resource (or return the last modified time of an already tracked resource).
Methods inherited from interface org.apache.tapestry5.commons.services.InvalidationEventHub
addInvalidationCallback, addInvalidationListener, clearOnInvalidation
long trackResource(Resource resource)Start tracking the resource (or return the last modified time of an already tracked resource). Only file system resources are tracked. Resources are tracked until any resource changes, at which points listeners are notified and the internal state is cleared.
resource- to track
- last modified time, to nearest second
- See Also:
void forceInvalidationEvent()Forces an invalidation event. This is required in a rare case, to clear out a
StreamableResourcegenerated from the component message catalog; there are some walls in place that prevent the message catalog's underlying
Resources from being exposed.
- See Also: