public interface MessageInterpolator extends Serializable, DeltaSpikeConfig
An application can provide a custom implementation as @Alternative.
A simple implementation which uses the String.format(java.util.Locale, String, Object...)
will be used by
default.
Modifier and Type | Method and Description |
---|---|
String |
interpolate(String messageText,
Serializable[] arguments,
Locale locale)
Replaces the arguments of the given message with the given arguments.
|
String interpolate(String messageText, Serializable[] arguments, Locale locale)
messageText
- the message text which has to be interpolatedarguments
- a list of numbered and/or named arguments for the current messagelocale
- to use for the formattingCopyright © 2020 The Apache Software Foundation. All rights reserved.