public class MessageSourceFunction extends Object implements com.mitchellbosecke.pebble.extension.Function
Function available to templates in Spring MVC applications in order to resolve message in the application context
| Modifier and Type | Field and Description |
|---|---|
static String |
FUNCTION_NAME |
| Constructor and Description |
|---|
MessageSourceFunction(org.springframework.context.MessageSource messageSource) |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(Map<String,Object> args,
com.mitchellbosecke.pebble.template.PebbleTemplate self,
com.mitchellbosecke.pebble.template.EvaluationContext context,
int lineNumber) |
List<String> |
getArgumentNames() |
public static final String FUNCTION_NAME
public MessageSourceFunction(org.springframework.context.MessageSource messageSource)
Copyright © 2018. All rights reserved.