public class MessageSourceFunction extends Object implements 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,
PebbleTemplate self,
EvaluationContext context,
int lineNumber) |
List<String> |
getArgumentNames() |
public static final String FUNCTION_NAME
public MessageSourceFunction(org.springframework.context.MessageSource messageSource)
public Object execute(Map<String,Object> args, PebbleTemplate self, EvaluationContext context, int lineNumber)
public List<String> getArgumentNames()
getArgumentNames in interface NamedArgumentsCopyright © 2019. All rights reserved.