public final class Configuration extends Object
General configuration class, containing all the configuration items
for a TemplateEngine
, including all the info for every configured
IDialect
.
Except for testing purposes, there is no reason why a user might need to use this class directly.
Modifier and Type | Field and Description |
---|---|
static IDialect |
STANDARD_THYMELEAF_DIALECT
Deprecated.
Deprecated in 2.1.0. Create a new instance of the StandardDialect using its constructors instead.
Will be removed in 3.0
|
Constructor and Description |
---|
Configuration() |
@Deprecated public static final IDialect STANDARD_THYMELEAF_DIALECT
public void initialize()
public ICacheManager getCacheManager()
public void setCacheManager(ICacheManager cacheManager)
public void setDialect(IDialect dialect)
public void clearDialects()
public Set<ITemplateResolver> getTemplateResolvers()
public void setTemplateResolvers(Set<? extends ITemplateResolver> templateResolvers)
public void addTemplateResolver(ITemplateResolver templateResolver)
public void setTemplateResolver(ITemplateResolver templateResolver)
public Set<IMessageResolver> getMessageResolvers()
public void setMessageResolvers(Set<? extends IMessageResolver> messageResolvers)
public void addMessageResolver(IMessageResolver messageResolver)
public void setMessageResolver(IMessageResolver messageResolver)
public void setDefaultMessageResolvers(Set<? extends IMessageResolver> defaultMessageResolvers)
public Set<ITemplateModeHandler> getTemplateModeHandlers()
public ITemplateModeHandler getTemplateModeHandler(String templateMode)
public void setTemplateModeHandlers(Set<? extends ITemplateModeHandler> templateModeHandlers)
public void addTemplateModeHandler(ITemplateModeHandler templateModeHandler)
public void setDefaultTemplateModeHandlers(Set<? extends ITemplateModeHandler> defaultTemplateModeHandlers)
public Set<IDocTypeTranslation> getDocTypeTranslations()
public IDocTypeTranslation getDocTypeTranslationBySource(String publicID, String systemID)
public Set<IDocTypeResolutionEntry> getDocTypeResolutionEntries()
public ArrayList<ProcessorAndContext> computeProcessorsForNode(Node node)
Computes all the processors that should be applied to a specific Node
.
Results are returned ordered by precedence.
node
- the node to computeProcessorAndContext
objects.public boolean isPrefixManaged(String prefix)
Copyright © 2016 The THYMELEAF team. All rights reserved.