org.hibernate.validator.messageinterpolation.AbstractMessageInterpolator Java Examples

The following examples show how to use org.hibernate.validator.messageinterpolation.AbstractMessageInterpolator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HibernateValidatorProcessor.java    From quarkus with Apache License 2.0 5 votes vote down vote up
@BuildStep
NativeImageConfigBuildItem nativeImageConfig() {
    return NativeImageConfigBuildItem.builder()
            .addResourceBundle(AbstractMessageInterpolator.DEFAULT_VALIDATION_MESSAGES)
            .addResourceBundle(AbstractMessageInterpolator.USER_VALIDATION_MESSAGES)
            .addResourceBundle(AbstractMessageInterpolator.CONTRIBUTOR_VALIDATION_MESSAGES)
            .build();
}
 
Example #2
Source File: ParameterValidator.java    From servicecomb-java-chassis with Apache License 2.0 4 votes vote down vote up
private AbstractMessageInterpolator messageInterpolator() {
  if (useResourceBundleMessageInterpolator()) {
    return new ResourceBundleMessageInterpolator();
  }
  return new ParameterMessageInterpolator();
}
 
Example #3
Source File: ParameterValidatorFilter.java    From servicecomb-java-chassis with Apache License 2.0 4 votes vote down vote up
private AbstractMessageInterpolator messageInterpolator() {
  if (useResourceBundleMessageInterpolator()) {
    return new ResourceBundleMessageInterpolator();
  }
  return new ParameterMessageInterpolator();
}