Package org.thymeleaf.engine
Class TemplateManager
-
- org.thymeleaf.engine.TemplateManager
-
public final class TemplateManager extends
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
-
Constructor Summary
Constructors Constructor Description TemplateManager(IEngineConfiguration configuration)
This constructor should only be called directly for testing purposes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCaches()
Clears the template cache.void
template)
Clears any existing entries for template of the specified name at the template cache.void
parseAndProcess(TemplateSpec templateSpec, IContext context, writer)
ThrottledTemplateProcessor
parseAndProcessThrottled(TemplateSpec templateSpec, IContext context)
TemplateModel
parseStandalone(ITemplateContext context, template, <> templateSelectors, TemplateMode templateMode, boolean useCache, boolean failIfNotExists)
TemplateModel
parseString(TemplateData ownerTemplateData, template, int lineOffset, int colOffset, TemplateMode templateMode, boolean useCache)
void
process(TemplateModel template, ITemplateContext context, writer)
-
-
-
Constructor Detail
-
TemplateManager
public TemplateManager(IEngineConfiguration configuration)
This constructor should only be called directly for testing purposes.
- Parameters:
configuration
- the engine configuration
-
-
Method Detail
-
clearCaches
public void clearCaches()
Clears the template cache.
-
clearCachesFor
public void clearCachesFor( template)
Clears any existing entries for template of the specified name at the template cache.
- Parameters:
template
- the name of the template whose entries have to be cleared.
-
parseStandalone
public TemplateModel parseStandalone(ITemplateContext context, template, <> templateSelectors, TemplateMode templateMode, boolean useCache, boolean failIfNotExists)
-
parseString
public TemplateModel parseString(TemplateData ownerTemplateData, template, int lineOffset, int colOffset, TemplateMode templateMode, boolean useCache)
-
process
public void process(TemplateModel template, ITemplateContext context, writer)
-
parseAndProcess
public void parseAndProcess(TemplateSpec templateSpec, IContext context, writer)
-
parseAndProcessThrottled
public ThrottledTemplateProcessor parseAndProcessThrottled(TemplateSpec templateSpec, IContext context)
-
-