ru.tinkoff.kora.validation.common.annotation.Validate 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.common.AopAnnotation;
import ru.tinkoff.kora.validation.common.ValidationContext;
import java.lang.annotation.*;
/**
* Indicates that Method Arguments / Method Return Value should be validated
*/
@AopAnnotation
@Documented
@Retention(value = RetentionPolicy.CLASS)
@Target(value = {ElementType.METHOD})
public @interface Validate {
/**
* @return true if Fail Fast
* @see ValidationContext#isFailFast()
*/
boolean failFast() default false;
}