ru.tinkoff.kora.validation.common.annotation.ValidatedBy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of validation-common Show documentation
Show all versions of validation-common Show documentation
Kora validation-common module
package ru.tinkoff.kora.validation.common.annotation;
import ru.tinkoff.kora.validation.common.Validator;
import ru.tinkoff.kora.validation.common.ValidatorFactory;
import java.lang.annotation.*;
/**
* Indicates that annotation is used for validation and providers factory that instantiates {@link Validator}
*/
@Documented
@Retention(value = RetentionPolicy.CLASS)
@Target(value = {ElementType.ANNOTATION_TYPE})
public @interface ValidatedBy {
@SuppressWarnings("rawtypes")
Class extends ValidatorFactory> value();
}