Class DefaultMessageInterpolator

  • All Implemented Interfaces:
    jakarta.validation.MessageInterpolator

    public class DefaultMessageInterpolator
    extends Object
    implements jakarta.validation.MessageInterpolator
    Description: Resource bundle backed message interpolator. This message resolver resolve message descriptors into human-readable messages. It uses ResourceBundles to find the messages. This class is threadsafe.
    • Constructor Detail

      • DefaultMessageInterpolator

        public DefaultMessageInterpolator()
        Create a new DefaultMessageInterpolator instance.
      • DefaultMessageInterpolator

        public DefaultMessageInterpolator​(ResourceBundle resourceBundle)
        Create a new DefaultMessageInterpolator instance.
        Parameters:
        resourceBundle -
    • Method Detail

      • interpolate

        public String interpolate​(String message,
                                  jakarta.validation.MessageInterpolator.Context context)
        Specified by:
        interpolate in interface jakarta.validation.MessageInterpolator
      • interpolate

        public String interpolate​(String message,
                                  jakarta.validation.MessageInterpolator.Context context,
                                  Locale locale)
        Specified by:
        interpolate in interface jakarta.validation.MessageInterpolator
      • clearCache

        public void clearCache()