org.chobit.commons.validation.WholeCheckValidator Maven / Gradle / Ivy
package org.chobit.commons.validation;
import jakarta.validation.ConstraintValidator;
import jakarta.validation.ConstraintValidatorContext;
import org.chobit.commons.contract.Checkable;
/**
* 整体检查验证
*
* @author robin
*/
public class WholeCheckValidator implements ConstraintValidator {
@Override
public void initialize(WholeCheck anno) {
}
@Override
public boolean isValid(Checkable checkableObj, ConstraintValidatorContext context) {
return checkableObj.check();
}
}