com.github.thiagogarbazza.domainvalidation.Validator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of domain-validation Show documentation
Show all versions of domain-validation Show documentation
A simple framework to write domain validation.
package com.github.thiagogarbazza.domainvalidation;
public interface Validator {
void onCreate(final T entity) throws ViolationException;
void onDelete(final T entity) throws ViolationException;
void onUpdate(final T entity) throws ViolationException;
}