Class ThymeleafFactory

java.lang.Object
io.micronaut.views.thymeleaf.ThymeleafFactory

@Factory public class ThymeleafFactory extends Object
A factory for Thymeleaf beans.
Since:
1.1.0
Author:
James Kleeh
  • 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 configuration
      rendererConfiguration - 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 resolver
      engineContextFactory - The engine context factory
      linkBuilder - The link builder
      messageSourceMessageResolver - The message resolver
      Returns:
      The template engine