Package org.thymeleaf.spring5
Interface ISpringTemplateEngine
-
- All Superinterfaces:
org.thymeleaf.ITemplateEngine
- All Known Subinterfaces:
ISpringWebFluxTemplateEngine
- All Known Implementing Classes:
SpringTemplateEngine,SpringWebFluxTemplateEngine
public interface ISpringTemplateEngine extends org.thymeleaf.ITemplateEngineSub-interface of
ITemplateEnginemeant for Spring applications, meant to be using theSpringStandardDialectand integrating with other Spring-bound infrastructure.The
SpringTemplateEngineimplementation of this interface (or a subclass) should be used in almost every case, but this interface improves testability of these artifacts.- Since:
- 3.0.3
- Author:
- Daniel Fernández
- See Also:
SpringTemplateEngine
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetTemplateEngineMessageSource(org.springframework.context.MessageSource templateEngineMessageSource)Sets the SpringMessageSourceto be used for this template engine.
-
-
-
Method Detail
-
setTemplateEngineMessageSource
void setTemplateEngineMessageSource(org.springframework.context.MessageSource templateEngineMessageSource)
Sets the Spring
MessageSourceto be used for this template engine.Note that the
SpringTemplateEngineimplementation will allow this to be set automatically by implementing theMessageSourceAwareinterface, but in such case this method will allow to override this mechanism if needed.- Parameters:
templateEngineMessageSource- the message source to be used by the message resolver.
-
-