|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.thymeleaf.templateresolver.AlwaysValidTemplateResolutionValidity
public class AlwaysValidTemplateResolutionValidity
Simple implementation of ITemplateResolutionValidity
that considers the template resolution to be always cacheable
and always valid.
This means that a cache entry for this template resolution would only be evicted by the effect of LRU (being the least-recently used entry).
Field Summary | |
---|---|
static AlwaysValidTemplateResolutionValidity |
INSTANCE
Singleton instance. |
Constructor Summary | |
---|---|
AlwaysValidTemplateResolutionValidity()
|
Method Summary | |
---|---|
boolean |
isCacheable()
Returns true. |
boolean |
isCacheStillValid()
Returns true. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final AlwaysValidTemplateResolutionValidity INSTANCE
Singleton instance. Meant to avoid creating too many objects of this class.
Constructor Detail |
---|
public AlwaysValidTemplateResolutionValidity()
Method Detail |
---|
public boolean isCacheable()
Returns true. Templates are always considered cacheable using this validity implementation.
isCacheable
in interface ITemplateResolutionValidity
public boolean isCacheStillValid()
Returns true. Template cache entries using this validity are always considered valid, and thus only evicted from cache by LRU.
isCacheStillValid
in interface ITemplateResolutionValidity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |