Class ThymeleafFactory


  • @Factory
    public class ThymeleafFactory
    extends java.lang.Object
    A factory for Thymeleaf beans.
    Since:
    1.1.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver templateResolver​(io.micronaut.views.ViewsConfiguration viewsConfiguration, ThymeleafViewsRendererConfiguration rendererConfiguration)
      Constructs the template resolver bean.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThymeleafFactory

        public ThymeleafFactory()
    • Method Detail

      • templateResolver

        @Singleton
        public org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver templateResolver​(io.micronaut.views.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