MessageInterpolator

WARNING - TOPIC NOT WRITTEN - TOPIC ID: 2497

This topic has not yet been written. The content below is from the topic description.
5.3. MessageInterpolator Section 2.2.4, “Message interpolation” already discussed the default message interpolation algorithm. If you have special requirements for your message interpolation you can provide a custom interpolator using Configuration.messageInterpolator(). This message interpolator will be shared by all validators generated by the ValidatorFactory created from this Configuration(see Example 5.6, “Providing a custom MessageInterpolator”). Example 5.6. Providing a custom MessageInterpolator Configuration  configuration = Validation.byDefaultProvider().configure(); ValidatorFactory factory = configuration     .messageInterpolator(new ContextualMessageInterpolator(configuration.getDefaultMessageInterpolator()))     .buildValidatorFactory(); Validator validator = factory.getValidator(); Tip It is recommended that MessageInterpolator implementations delegate final interpolation to the Bean Validation default MessageInterpolator to ensure standard Bean Validation interpolation rules are followed. The default implementation is accessible through Configuration.getDefaultMessageInterpolator().