Interface ReactiveValidator
-
- All Known Implementing Classes:
DefaultAnnotatedElementValidator,DefaultValidator
public interface ReactiveValidatorInterface for reactive bean validation.- Since:
- 1.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> java.util.concurrent.CompletionStage<T>validateCompletionStage(java.util.concurrent.CompletionStage<T> completionStage, java.lang.Class<?>... groups)Validate the given CompletionStage by returning a new CompletionStage that validates the emitted value.<T> org.reactivestreams.Publisher<T>validatePublisher(org.reactivestreams.Publisher<T> publisher, java.lang.Class<?>... groups)Validate the given publisher by returning a new Publisher that validates each emitted value.
-
-
-
Method Detail
-
validatePublisher
@NonNull <T> org.reactivestreams.Publisher<T> validatePublisher(@NonNull org.reactivestreams.Publisher<T> publisher, java.lang.Class<?>... groups)Validate the given publisher by returning a new Publisher that validates each emitted value. If a constraint violation error occurs aConstraintViolationExceptionwill be thrown.- Type Parameters:
T- The generic type- Parameters:
publisher- The publishergroups- The groups- Returns:
- The publisher
-
validateCompletionStage
@NonNull <T> java.util.concurrent.CompletionStage<T> validateCompletionStage(@NonNull java.util.concurrent.CompletionStage<T> completionStage, java.lang.Class<?>... groups)Validate the given CompletionStage by returning a new CompletionStage that validates the emitted value. If a constraint violation error occurs aConstraintViolationExceptionwill be thrown.- Type Parameters:
T- The generic type- Parameters:
completionStage- The completion stagegroups- The groups- Returns:
- The publisher
-
-