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) |
String |
interpolate(String message,
MessageInterpolator.Context context,
Locale locale) |
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)
interpolate in interface MessageInterpolatorpublic String interpolate(String message, MessageInterpolator.Context context, Locale locale)
interpolate in interface MessageInterpolatorCopyright © 2007-2012 Red Hat Middleware, LLC. All Rights Reserved