public class ResourceBundleMessageInterpolator extends Object implements MessageInterpolator
MessageInterpolator.Context| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_VALIDATION_MESSAGES
The name of the default message bundle.
|
static String |
USER_VALIDATION_MESSAGES
The name of the user-provided message bundle as defined in the specification.
|
| Constructor and Description |
|---|
ResourceBundleMessageInterpolator() |
ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator) |
ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator,
boolean cacheMessages) |
| Modifier and Type | Method and Description |
|---|---|
String |
interpolate(String message,
MessageInterpolator.Context context)
Interpolate the message template based on the contraint validation context.
|
String |
interpolate(String message,
MessageInterpolator.Context context,
Locale locale)
Interpolate the message template based on the contraint validation context.
|
public static final String DEFAULT_VALIDATION_MESSAGES
public static final String USER_VALIDATION_MESSAGES
public ResourceBundleMessageInterpolator()
public ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator)
public ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator, boolean cacheMessages)
public String interpolate(String message, MessageInterpolator.Context context)
MessageInterpolatorMessageInterpolator
implementation. See the implementation documentation for more detail.interpolate in interface MessageInterpolatormessage - The message to interpolate.context - contextual information related to the interpolationpublic String interpolate(String message, MessageInterpolator.Context context, Locale locale)
MessageInterpolatorLocale used is provided as a parameter.interpolate in interface MessageInterpolatormessage - The message to interpolate.context - contextual information related to the interpolationlocale - the locale targeted for the messageCopyright © 2012 JBoss by Red Hat. All Rights Reserved.