public interface MessageInterpolator extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
interpolate(MessageContext messageContext,
String messageText,
Serializable... arguments)
replaces the arguments of the given message with the given arguments
|
String interpolate(MessageContext messageContext, String messageText, Serializable... arguments)
messageContext
- the current MessageContext
instead of a MessageContextAware interface. we need it to avoid expensive operations like locking or deep cloningmessageText
- the message text which has to be interpolatedarguments
- a list of numbered and/or named arguments for the current messageCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.