Class I18nInterpolator

  • All Implemented Interfaces:
    javax.validation.MessageInterpolator

    public class I18nInterpolator
    extends org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator
    This MessageInterpolator uses current user locale to translate hibernate validation messages.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface javax.validation.MessageInterpolator

        javax.validation.MessageInterpolator.Context
    • Field Summary

      • Fields inherited from class org.hibernate.validator.messageinterpolation.AbstractMessageInterpolator

        CONTRIBUTOR_VALIDATION_MESSAGES, DEFAULT_VALIDATION_MESSAGES, USER_VALIDATION_MESSAGES
    • Constructor Detail

      • I18nInterpolator

        public I18nInterpolator()
    • Method Detail

      • interpolate

        public String interpolate​(String message,
                                  javax.validation.MessageInterpolator.Context context)
        Specified by:
        interpolate in interface javax.validation.MessageInterpolator
        Overrides:
        interpolate in class org.hibernate.validator.messageinterpolation.AbstractMessageInterpolator