|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectorg.thymeleaf.messageresolver.AbstractMessageResolver
org.thymeleaf.spring3.messageresolver.SpringMessageResolver
public final class SpringMessageResolver
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 Summary | |
|---|---|
SpringMessageResolver()
|
|
| Method Summary | |
|---|---|
org.springframework.context.MessageSource |
getMessageSource()
Returns the message source ( MessageSource) to be
used for message resolution. |
protected void |
initializeSpecific()
|
protected void |
initializeSpringSpecific()
|
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. |
| Methods inherited from class org.thymeleaf.messageresolver.AbstractMessageResolver |
|---|
checkInitialized, checkNotInitialized, getName, getOrder, initialize, isInitialized, setName, setOrder, unsafeGetName, unsafeGetOrder |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpringMessageResolver()
| Method Detail |
|---|
protected final void initializeSpecific()
initializeSpecific in class org.thymeleaf.messageresolver.AbstractMessageResolverprotected void initializeSpringSpecific()
public 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 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 source
public org.thymeleaf.messageresolver.MessageResolution resolveMessage(org.thymeleaf.Arguments arguments,
String key,
Object[] messageParameters)
resolveMessage in interface org.thymeleaf.messageresolver.IMessageResolver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||