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
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.validation.MessageInterpolator
jakarta.validation.MessageInterpolator.Context
-
Constructor Summary
ConstructorDescriptionDefaultMessageInterpolator
(io.micronaut.context.MessageSource messageSource) -
Method Summary
Modifier and TypeMethodDescriptioninterpolate
(String messageTemplate, jakarta.validation.MessageInterpolator.Context context) interpolate
(String messageTemplate, jakarta.validation.MessageInterpolator.Context context, Locale locale)
-
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 interfacejakarta.validation.MessageInterpolator
-
interpolate
public String interpolate(String messageTemplate, jakarta.validation.MessageInterpolator.Context context, Locale locale) - Specified by:
interpolate
in interfacejakarta.validation.MessageInterpolator
-