public final class SpringMessageResolver
extends org.thymeleaf.messageresolver.AbstractMessageResolver
implements org.springframework.context.MessageSourceAware
Implementation of IMessageResolver that
integrates the standard Spring way of resolving messages into Thymeleaf.
This resolution is done by means of using the available Spring-configured
MessageSource objects.
This message resolver will consider you are using a non-reloadable ResourceBundleMessageSource in your Spring configuration and thus will be considered Cacheable
| Constructor and Description |
|---|
SpringMessageResolver() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.context.MessageSource |
getMessageSource()
Returns the message source (
MessageSource) to be
used for message resolution. |
protected void |
initializeSpecific() |
org.thymeleaf.messageresolver.MessageResolution |
resolveMessage(org.thymeleaf.Arguments arguments,
String key,
Object[] messageParameters) |
void |
setMessageSource(org.springframework.context.MessageSource messageSource)
Sets the message source to be used for message resolution
|
protected org.springframework.context.MessageSource |
unsafeGetMessageSource()
Uninitialized method meant for use by subclasses.
|
protected final void initializeSpecific()
initializeSpecific in class org.thymeleaf.messageresolver.AbstractMessageResolverpublic final org.springframework.context.MessageSource getMessageSource()
Returns the message source (MessageSource) to be
used for message resolution.
protected final org.springframework.context.MessageSource unsafeGetMessageSource()
Uninitialized method meant for use by subclasses.
public final void setMessageSource(org.springframework.context.MessageSource messageSource)
Sets the message source to be used for message resolution
setMessageSource in interface org.springframework.context.MessageSourceAwaremessageSource - the message sourceCopyright © 2017 The THYMELEAF team. All rights reserved.