All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.avaje.validation.spi.MessageInterpolator Maven / Gradle / Ivy

Go to download

validator for annotated pojos using constraint annotations and source code generation

There is a newer version: 2.9
Show newest version
package io.avaje.validation.spi;

import java.util.Map;

/** Reads an Annotation's attributes and the message template and interpolates the message */
public non-sealed interface MessageInterpolator extends ValidationExtension {

  /**
   * Interpolate the given message with the annotation attributes
   *
   * @param template The template loaded from annotation/resourceBundle
   * @param attributes The Constraint annotation's attributes
   * @return The interpolated validation error message
   */
  String interpolate(String template, Map attributes);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy