Package org.thymeleaf.engine
Class TemplateManager
Object
org.thymeleaf.engine.TemplateManager
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateManager
(IEngineConfiguration configuration) This constructor should only be called directly for testing purposes. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the template cache.void
clearCachesFor
(String template) Clears any existing entries for template of the specified name at the template cache.void
parseAndProcess
(TemplateSpec templateSpec, IContext context, Writer writer) parseAndProcessThrottled
(TemplateSpec templateSpec, IContext context) parseStandalone
(ITemplateContext context, String template, Set<String> templateSelectors, TemplateMode templateMode, boolean useCache, boolean failIfNotExists) parseString
(TemplateData ownerTemplateData, String template, int lineOffset, int colOffset, TemplateMode templateMode, boolean useCache) void
process
(TemplateModel template, ITemplateContext context, Writer writer)
-
Constructor Details
-
TemplateManager
This constructor should only be called directly for testing purposes.
- Parameters:
configuration
- the engine configuration
-
-
Method Details
-
clearCaches
public void clearCaches()Clears the template cache.
-
clearCachesFor
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
-
parseAndProcess
-
parseAndProcessThrottled
public ThrottledTemplateProcessor parseAndProcessThrottled(TemplateSpec templateSpec, IContext context)
-