Class DefaultMessageInterpolator

java.lang.Object
io.micronaut.validation.validator.messages.DefaultMessageInterpolator
All Implemented Interfaces:
jakarta.validation.MessageInterpolator

@Singleton public class DefaultMessageInterpolator extends Object implements jakarta.validation.MessageInterpolator
The default error messages.
Since:
1.2
Author:
graemerocher
  • Constructor Details

    • DefaultMessageInterpolator

      public DefaultMessageInterpolator(io.micronaut.context.MessageSource messageSource)
  • Method Details

    • interpolate

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

      public String interpolate(String messageTemplate, jakarta.validation.MessageInterpolator.Context context, Locale locale)
      Specified by:
      interpolate in interface jakarta.validation.MessageInterpolator