
io.avaje.validation.spi.MessageInterpolator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of avaje-validator Show documentation
Show all versions of avaje-validator Show documentation
validator for annotated pojos using constraint annotations and source code generation
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