public class NonCacheableCacheEntryValidity extends Object implements ICacheEntryValidity
Simple implementation of ICacheEntryValidity
that considers the template resolution to be non-cacheable.
Modifier and Type | Field and Description |
---|---|
static NonCacheableCacheEntryValidity |
INSTANCE
Singleton instance.
|
Constructor and Description |
---|
NonCacheableCacheEntryValidity() |
Modifier and Type | Method and 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.
|
public static final NonCacheableCacheEntryValidity INSTANCE
Singleton instance. Meant to avoid creating too many objects of this class.
public boolean isCacheable()
Returns false. Template Resolutions using this validity are always considered to be non-cacheable.
isCacheable
in interface ICacheEntryValidity
public boolean isCacheStillValid()
This method will never be called, because templates using this validity implementation are always considered to be non-cacheable.
isCacheStillValid
in interface ICacheEntryValidity
Copyright © 2016 The THYMELEAF team. All rights reserved.