|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.thymeleaf.TemplateEngine org.thymeleaf.spring3.SpringTemplateEngine
public class SpringTemplateEngine
Subclass of TemplateEngine
meant for Spring MVC applications,
that establishes by default an instance of SpringStandardDialect
as a dialect (instead of an instance of StandardDialect
,
which is the default in TemplateEngine
.
It also configures a SpringMessageResolver
as message resolver, and
provides a convenience method for setting the MessageSource
that
this resolver needs for message resolution.
Note that this class will validate during initialization that at least one of the
configured dialects is SpringStandardDialect
or a subclass of it.
Field Summary |
---|
Fields inherited from class org.thymeleaf.TemplateEngine |
---|
TIMER_LOGGER_NAME |
Constructor Summary | |
---|---|
SpringTemplateEngine()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
protected void |
initializeSpecific()
|
protected void |
initializeSpringSpecific()
Called during initialization of this Template Engine. |
void |
setMessageSource(org.springframework.context.MessageSource messageSource)
Convenience method for setting the message source that will be used by the SpringMessageResolver configured by default. |
Methods inherited from class org.thymeleaf.TemplateEngine |
---|
addDialect, addDialect, addMessageResolver, addTemplateModeHandler, addTemplateResolver, clearDialects, clearTemplateCache, clearTemplateCacheFor, getCacheManager, getConfiguration, getDialects, getDialectsByPrefix, getMessageResolvers, getTemplateModeHandlers, getTemplateRepository, getTemplateResolvers, initialize, isInitialized, process, process, process, process, process, process, setAdditionalDialects, setCacheManager, setDefaultMessageResolvers, setDefaultTemplateModeHandlers, setDialect, setDialects, setDialectsByPrefix, setMessageResolver, setMessageResolvers, setTemplateModeHandlers, setTemplateResolver, setTemplateResolvers, threadIndex, threadLocale, threadTemplateEngine, threadTemplateName |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpringTemplateEngine()
Method Detail |
---|
public void setMessageSource(org.springframework.context.MessageSource messageSource)
Convenience method for setting the message source that will
be used by the SpringMessageResolver
configured by default.
setMessageSource
in interface org.springframework.context.MessageSourceAware
messageSource
- the message source to be used by the message resolverpublic void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
protected final void initializeSpecific()
initializeSpecific
in class org.thymeleaf.TemplateEngine
protected void initializeSpringSpecific()
Called during initialization of this Template Engine. Meant to be overridden by subclasses.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |