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)
Deprecated.
Will be removed in a future release. Use
ResourceBundleMessageInterpolator(ResourceBundleLocator) instead. |
ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator) |
ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator,
boolean cacheMessages)
Deprecated.
Will be removed in a future release. Use
ResourceBundleMessageInterpolator(ResourceBundleLocator, boolean) instead. |
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()
@Deprecated public ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator)
ResourceBundleMessageInterpolator(ResourceBundleLocator)
instead.public ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator)
@Deprecated public ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator, boolean cacheMessages)
ResourceBundleMessageInterpolator(ResourceBundleLocator, boolean)
instead.public ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator, boolean cacheMessages)
public String interpolate(String message, MessageInterpolator.Context context)
interpolate
in interface MessageInterpolator
public String interpolate(String message, MessageInterpolator.Context context, Locale locale)
interpolate
in interface MessageInterpolator
Copyright © 2007-2014 Red Hat Middleware, LLC. All Rights Reserved