Package io.micronaut.views.thymeleaf
Class ThymeleafFactory
java.lang.Object
io.micronaut.views.thymeleaf.ThymeleafFactory
A factory for Thymeleaf beans.
- Since:
- 1.1.0
- Author:
- James Kleeh
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.thymeleaf.TemplateEngine
templateEngine
(org.thymeleaf.templateresolver.ITemplateResolver templateResolver, org.thymeleaf.context.IEngineContextFactory engineContextFactory, org.thymeleaf.linkbuilder.ILinkBuilder linkBuilder, MessageSourceMessageResolver messageSourceMessageResolver) Constructs the template engine.org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver
templateResolver
(ViewsConfiguration viewsConfiguration, ThymeleafViewsRendererConfiguration rendererConfiguration) Constructs the template resolver bean.
-
Constructor Details
-
ThymeleafFactory
public ThymeleafFactory()
-
-
Method Details
-
templateResolver
@Singleton public org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver templateResolver(ViewsConfiguration viewsConfiguration, ThymeleafViewsRendererConfiguration rendererConfiguration) Constructs the template resolver bean.- Parameters:
viewsConfiguration
- The views configurationrendererConfiguration
- The renderer configuration- Returns:
- The template resolver
-
templateEngine
@Singleton public org.thymeleaf.TemplateEngine templateEngine(org.thymeleaf.templateresolver.ITemplateResolver templateResolver, org.thymeleaf.context.IEngineContextFactory engineContextFactory, org.thymeleaf.linkbuilder.ILinkBuilder linkBuilder, MessageSourceMessageResolver messageSourceMessageResolver) Constructs the template engine.- Parameters:
templateResolver
- The template resolverengineContextFactory
- The engine context factorylinkBuilder
- The link buildermessageSourceMessageResolver
- The message resolver- Returns:
- The template engine
-