Class SpringWebFluxEngineContextFactory
- Object
-
- org.thymeleaf.spring5.context.webflux.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 theISpringWebFluxContext
interface or not (i.e. whether support for Spring WebFlux should be enabled or not), return aSpringWebFluxEngineContext
or a simpleEngineContext
instance as a result.This is the default factory implementation used by
SpringWebFluxTemplateEngine
.- Since:
- 3.0.3
- Author:
- Daniel Fernández
-
-
Constructor Summary
Constructors Constructor Description SpringWebFluxEngineContextFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.thymeleaf.context.IEngineContext
createEngineContext(org.thymeleaf.IEngineConfiguration configuration, org.thymeleaf.engine.TemplateData templateData, Map<String,Object> templateResolutionAttributes, org.thymeleaf.context.IContext context)
-
-
-
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 interfaceorg.thymeleaf.context.IEngineContextFactory
-
-