Package org.thymeleaf.cache
Class NonCacheableCacheEntryValidity
Object
org.thymeleaf.cache.NonCacheableCacheEntryValidity
- All Implemented Interfaces:
ICacheEntryValidity
Simple implementation of ICacheEntryValidity
that considers the template resolution to be non-cacheable.
- Since:
- 1.0
- Author:
- Daniel Fernández
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns false.boolean
This method will never be called, because templates using this validity implementation are always considered to be non-cacheable.
-
Field Details
-
INSTANCE
Singleton instance. Meant to avoid creating too many objects of this class.
-
-
Constructor Details
-
NonCacheableCacheEntryValidity
public NonCacheableCacheEntryValidity()
-
-
Method Details
-
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
-