Package org.thymeleaf.cache
Class NonCacheableCacheEntryValidity
- Object
-
- org.thymeleaf.cache.NonCacheableCacheEntryValidity
-
- All Implemented Interfaces:
ICacheEntryValidity
public class NonCacheableCacheEntryValidity extends Object implements ICacheEntryValidity
Simple implementation of
ICacheEntryValiditythat considers the template resolution to be non-cacheable.- Since:
- 1.0
- Author:
- Daniel Fernández
-
-
Field Summary
Fields Modifier and Type Field Description static NonCacheableCacheEntryValidityINSTANCESingleton instance.
-
Constructor Summary
Constructors Constructor Description NonCacheableCacheEntryValidity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCacheable()Returns false.booleanisCacheStillValid()This method will never be called, because templates using this validity implementation are always considered to be non-cacheable.
-
-
-
Field Detail
-
INSTANCE
public static final NonCacheableCacheEntryValidity INSTANCE
Singleton instance. Meant to avoid creating too many objects of this class.
-
-
Method Detail
-
isCacheable
public boolean isCacheable()
Returns false. Template Resolutions using this validity are always considered to be non-cacheable.
- Specified by:
isCacheablein interfaceICacheEntryValidity- 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:
isCacheStillValidin interfaceICacheEntryValidity- Returns:
- false
-
-