fun.fengwk.convention4j.api.validation.Checker Maven / Gradle / Ivy
package fun.fengwk.convention4j.api.validation;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
/**
* 将尝试获取校验器进行校验。
*
* @author fengwk
*/
@Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE, TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = {})
public @interface Checker {
String message() default "{convention4j.validation.constraints.Checker.message}";
Class>[] groups() default {};
Class extends Payload>[] payload() default {};
boolean ignoreCheckerMissing() default false;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy