public class LocaleContextMessageInterpolator
extends java.lang.Object
MessageInterpolator
implementation but enforces Spring's
managed Locale. Typically used to wrap the validation provider's default interpolator.LocaleContextHolder.getLocale()
Modifier and Type | Field and Description |
---|---|
private MessageInterpolator |
targetInterpolator |
Constructor and Description |
---|
LocaleContextMessageInterpolator(MessageInterpolator targetInterpolator)
Create a new LocaleContextMessageInterpolator, wrapping the given target interpolator.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
interpolate(java.lang.String message,
Context context) |
java.lang.String |
interpolate(java.lang.String message,
Context context,
java.util.Locale locale) |