public class MessageInterpolatorImpl extends Object implements MessageInterpolator
Locale.getDefault()
. This behavior is not appropriate for Tapestry applications,
thus we need a Locale
aware message interpolator.MessageInterpolator.Context
Constructor and Description |
---|
MessageInterpolatorImpl(MessageInterpolator delegate,
ThreadLocale threadLocale) |
Modifier and Type | Method and Description |
---|---|
String |
interpolate(String messageTemplate,
MessageInterpolator.Context context) |
String |
interpolate(String messageTemplate,
MessageInterpolator.Context context,
Locale locale) |
public MessageInterpolatorImpl(MessageInterpolator delegate, ThreadLocale threadLocale)
public String interpolate(String messageTemplate, MessageInterpolator.Context context)
interpolate
in interface MessageInterpolator
MessageInterpolator.interpolate(java.lang.String, javax.validation.MessageInterpolator.Context)
public String interpolate(String messageTemplate, MessageInterpolator.Context context, Locale locale)
interpolate
in interface MessageInterpolator
MessageInterpolator.interpolate(java.lang.String, javax.validation.MessageInterpolator.Context, java.util.Locale)
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.