org.thymeleaf.templateresolver
Class NonCacheableTemplateResolutionValidity

Object
  extended by org.thymeleaf.templateresolver.NonCacheableTemplateResolutionValidity
All Implemented Interfaces:
ITemplateResolutionValidity

public class NonCacheableTemplateResolutionValidity
extends Object
implements ITemplateResolutionValidity

Simple implementation of ITemplateResolutionValidity that considers the template resolution to be non-cacheable.

Since:
1.0
Author:
Daniel Fernández

Field Summary
static NonCacheableTemplateResolutionValidity INSTANCE
           Singleton instance.
 
Constructor Summary
NonCacheableTemplateResolutionValidity()
           
 
Method Summary
 boolean isCacheable()
           Returns false.
 boolean isCacheStillValid()
           This method will never be called, because templates using this validity implementation are always considered to be non-cacheable.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final NonCacheableTemplateResolutionValidity INSTANCE

Singleton instance. Meant to avoid creating too many objects of this class.

Constructor Detail

NonCacheableTemplateResolutionValidity

public NonCacheableTemplateResolutionValidity()
Method Detail

isCacheable

public boolean isCacheable()

Returns false. Template Resolutions using this validity are always considered to be non-cacheable.

Specified by:
isCacheable in interface ITemplateResolutionValidity
Returns:
false

isCacheStillValid

public boolean isCacheStillValid()

This method will never be called, because templates using this validity implementation are always considered to be non-cacheable.

Specified by:
isCacheStillValid in interface ITemplateResolutionValidity
Returns:
false


Copyright © 2012 The THYMELEAF team. All Rights Reserved.