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

ru.tinkoff.kora.validation.common.annotation.Validate Maven / Gradle / Ivy

There is a newer version: 1.1.16
Show newest version
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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy