org.hibernate.validator.messageinterpolation
Class ResourceBundleMessageInterpolator
java.lang.Object
org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator
- All Implemented Interfaces:
- MessageInterpolator
public class ResourceBundleMessageInterpolator
- extends Object
- implements MessageInterpolator
Resource bundle backed message interpolator.
- Author:
- Emmanuel Bernard, Hardy Ferentschik, Gunnar Morling, Kevin Pollet - SERLI - (kevin.pollet@serli.com)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_VALIDATION_MESSAGES
public static final String DEFAULT_VALIDATION_MESSAGES
- The name of the default message bundle.
- See Also:
- Constant Field Values
USER_VALIDATION_MESSAGES
public static final String USER_VALIDATION_MESSAGES
- The name of the user-provided message bundle as defined in the specification.
- See Also:
- Constant Field Values
ResourceBundleMessageInterpolator
public ResourceBundleMessageInterpolator()
ResourceBundleMessageInterpolator
public ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator)
ResourceBundleMessageInterpolator
public ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator,
boolean cacheMessages)
interpolate
public String interpolate(String message,
MessageInterpolator.Context context)
- Specified by:
interpolate
in interface MessageInterpolator
interpolate
public String interpolate(String message,
MessageInterpolator.Context context,
Locale locale)
- Specified by:
interpolate
in interface MessageInterpolator
Copyright © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved