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

org.holmes.ResultCollector Maven / Gradle / Ivy

Go to download

Holmes is a library that provides a simple and fluent API for writing business rules validations on Java projects.

The newest version!
package org.holmes;

import org.holmes.exception.RuleViolationException;
import org.holmes.exception.ValidationException;

/**
 * ResultCollectors are notified whenever a rule evaluation fails.
 * 
 * @author diegossilveira
 */
public interface ResultCollector {

	void onRuleViolation(RuleViolationException e, ValidationResult result) throws ValidationException;

	void finish(ValidationResult result) throws ValidationException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy