public class ResourceChangeTrackerImpl extends InvalidationEventHubImpl implements ResourceChangeTracker, UpdateListener
Constructor and Description |
---|
ResourceChangeTrackerImpl(ClasspathURLConverter classpathURLConverter,
boolean productionMode) |
Modifier and Type | Method and Description |
---|---|
void |
addDependency(Resource dependency)
Marks the dependency as an additional resource.
|
void |
checkForUpdates()
Invoked to force the receiver to check for updates to whatever underlying resources it makes use of.
|
void |
forceInvalidationEvent()
Forces an invalidation event.
|
void |
registerWithUpdateListenerHub(UpdateListenerHub hub) |
long |
trackResource(Resource resource)
Start tracking the resource (or return the last modified time of an already tracked resource).
|
addInvalidationCallback, addInvalidationListener, clearOnInvalidation, fireInvalidationEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addInvalidationCallback, addInvalidationListener, clearOnInvalidation
public ResourceChangeTrackerImpl(ClasspathURLConverter classpathURLConverter, @Symbol(value="tapestry.production-mode") boolean productionMode)
@PostInjection public void registerWithUpdateListenerHub(UpdateListenerHub hub)
public long trackResource(Resource resource)
ResourceChangeTracker
trackResource
in interface ResourceChangeTracker
resource
- to trackURLChangeTracker
public void addDependency(Resource dependency)
ResourceDependencies
addDependency
in interface ResourceDependencies
public void forceInvalidationEvent()
ResourceChangeTracker
StreamableResource
generated from the component message catalog; there are some walls in place that prevent the message catalog's underlying
Resource
s from being exposed.forceInvalidationEvent
in interface ResourceChangeTracker
MessageCatalogResource
public void checkForUpdates()
UpdateListener
checkForUpdates
in interface UpdateListener
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.