Class SpringWebFluxEngineContextFactory

  • All Implemented Interfaces:
    org.thymeleaf.context.IEngineContextFactory

    public class SpringWebFluxEngineContextFactory
    extends Object
    implements org.thymeleaf.context.IEngineContextFactory

    Spring WebFlux-based implementation of the IEngineContextFactory interface.

    This factory will examine the context being passed as a parameter and, depending on whether this context object implements the ISpringWebFluxContext interface or not (i.e. whether support for Spring WebFlux should be enabled or not), return a SpringWebFluxEngineContext or a simple EngineContext instance as a result.

    This is the default factory implementation used by SpringWebFluxTemplateEngine.

    Since:
    3.0.3
    Author:
    Daniel Fernández
    • Constructor Detail

      • SpringWebFluxEngineContextFactory

        public SpringWebFluxEngineContextFactory()
    • Method Detail

      • createEngineContext

        public org.thymeleaf.context.IEngineContext createEngineContext​(org.thymeleaf.IEngineConfiguration configuration,
                                                                        org.thymeleaf.engine.TemplateData templateData,
                                                                        Map<String,​Object> templateResolutionAttributes,
                                                                        org.thymeleaf.context.IContext context)
        Specified by:
        createEngineContext in interface org.thymeleaf.context.IEngineContextFactory