Package org.thymeleaf.engine
Class TemplateManager
- Object
-
- org.thymeleaf.engine.TemplateManager
-
public final class TemplateManager extends Object
- 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 voidclearCaches()Clears the template cache.voidclearCachesFor(String template)Clears any existing entries for template of the specified name at the template cache.voidparseAndProcess(TemplateSpec templateSpec, IContext context, Writer writer)ThrottledTemplateProcessorparseAndProcessThrottled(TemplateSpec templateSpec, IContext context)TemplateModelparseStandalone(ITemplateContext context, String template, Set<String> templateSelectors, TemplateMode templateMode, boolean useCache, boolean failIfNotExists)TemplateModelparseString(TemplateData ownerTemplateData, String template, int lineOffset, int colOffset, TemplateMode templateMode, boolean useCache)voidprocess(TemplateModel template, ITemplateContext context, Writer 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(String 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, String template, Set<String> templateSelectors, TemplateMode templateMode, boolean useCache, boolean failIfNotExists)
-
parseString
public TemplateModel parseString(TemplateData ownerTemplateData, String template, int lineOffset, int colOffset, TemplateMode templateMode, boolean useCache)
-
process
public void process(TemplateModel template, ITemplateContext context, Writer writer)
-
parseAndProcess
public void parseAndProcess(TemplateSpec templateSpec, IContext context, Writer writer)
-
parseAndProcessThrottled
public ThrottledTemplateProcessor parseAndProcessThrottled(TemplateSpec templateSpec, IContext context)
-
-