org.webmacro.resource
Class TemplateProvider.FTReloadContext

java.lang.Object
  extended byorg.webmacro.resource.CacheReloadContext
      extended byorg.webmacro.resource.TemplateProvider.FTReloadContext
Enclosing class:
TemplateProvider

public static class TemplateProvider.FTReloadContext
extends CacheReloadContext

ReloadContext for file templates. Uses last-modified to determine if resource should be reloaded.


Constructor Summary
TemplateProvider.FTReloadContext(java.io.File f, long lastModified)
           
 
Method Summary
 boolean shouldReload()
          The CacheManager calls shouldReload to ask the reference whether it has changed since we loaded it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateProvider.FTReloadContext

public TemplateProvider.FTReloadContext(java.io.File f,
                                        long lastModified)
Method Detail

shouldReload

public boolean shouldReload()
Description copied from class: CacheReloadContext
The CacheManager calls shouldReload to ask the reference whether it has changed since we loaded it. Subclasses should define an implementation if this if it makes sense to. Otherwise, the default returns false, which means the item is replaced when it expires from the cache.

Overrides:
shouldReload in class CacheReloadContext