Author: epbernard
Date: 2009-03-12 17:20:47 -0400 (Thu, 12 Mar 2009)
New Revision: 16151
Modified:
beanvalidation/trunk/validation-api/src/main/java/javax/validation/MessageInterpolator.java
Log:
BVAL-136 Add Context object for MessageInterpolator
Modified:
beanvalidation/trunk/validation-api/src/main/java/javax/validation/MessageInterpolator.java
===================================================================
---
beanvalidation/trunk/validation-api/src/main/java/javax/validation/MessageInterpolator.java 2009-03-12
20:41:54 UTC (rev 16150)
+++
beanvalidation/trunk/validation-api/src/main/java/javax/validation/MessageInterpolator.java 2009-03-12
21:20:47 UTC (rev 16151)
@@ -32,25 +32,25 @@
* The locale is defaulted according to the <code>MessageInterpolator</code>
implementation
* See the implementation documentation for more detail.
*
- * @param message The message to interpolate.
+ * @param messageTemplate The message to interpolate.
* @param context contextual information related to the interpolation
*
* @return Interpolated error message.
*/
- String interpolate(String message,
+ String interpolate(String messageTemplate,
Context context);
/**
* Interpolate the message from the constraint parameters and the actual validated
object.
* The Locale used is provided as a parameter
*
- * @param message The message to interpolate.
+ * @param messageTemplate The message to interpolate.
* @param context contextual information related to the interpolation
* @param locale the locale targeted for the message
*
* @return Interpolated error message.
*/
- String interpolate(String message,
+ String interpolate(String messageTemplate,
Context context,
Locale locale);
Show replies by date