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
ICacheEntryValidity
that considers the template resolution to be non-cacheable.- Since:
- 1.0
- Author:
- Daniel Fernández
-
-
Field Summary
Fields Modifier and Type Field Description static NonCacheableCacheEntryValidity
INSTANCE
Singleton instance.
-
Constructor Summary
Constructors Constructor Description NonCacheableCacheEntryValidity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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:
isCacheable
in 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:
isCacheStillValid
in interfaceICacheEntryValidity
- Returns:
- false
-
-