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