@Singleton
public class MessageSourceMessageResolver
extends org.thymeleaf.messageresolver.AbstractMessageResolver
Constructor and Description |
---|
MessageSourceMessageResolver(io.micronaut.context.MessageSource messageSource)
Constructor which will initialize teh thymeleaf standard message resolver, and also the message source for
Micronaut.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createAbsentMessageRepresentation(org.thymeleaf.context.ITemplateContext context,
java.lang.Class<?> origin,
java.lang.String key,
java.lang.Object[] messageParameters) |
java.lang.String |
resolveMessage(org.thymeleaf.context.ITemplateContext context,
java.lang.Class<?> origin,
java.lang.String key,
java.lang.Object[] messageParameters) |
public MessageSourceMessageResolver(io.micronaut.context.MessageSource messageSource)
messageSource
- Micronaut message sourcepublic final java.lang.String resolveMessage(org.thymeleaf.context.ITemplateContext context, java.lang.Class<?> origin, java.lang.String key, java.lang.Object[] messageParameters)
public java.lang.String createAbsentMessageRepresentation(org.thymeleaf.context.ITemplateContext context, java.lang.Class<?> origin, java.lang.String key, java.lang.Object[] messageParameters)