import io.micronaut.core.annotation.AnnotationValue;
+import io.micronaut.core.annotation.Introspected;
import io.micronaut.core.annotation.NonNull;
import io.micronaut.core.annotation.Nullable;
import io.micronaut.validation.validator.constraints.ConstraintValidator;
@@ -1064,6 +1061,7 @@ <
import jakarta.inject.Singleton;
@Singleton
+@Introspected
public class MyValidatorBean implements ConstraintValidator<DurationPattern, Object> {
@Override
@@ -1367,7 +1365,7 @@ <
8 Validating Annotations at Compile Time
-
+
Improve this doc
@@ -1530,36 +1528,10 @@ <
validation-parent 5.0.0-SNAPSHOT API
+validation-parent 4.6.0-SNAPSHOT API
Constructor Summary
Method Summary
Methods inherited from class io.micronaut.validation.validator.DefaultValidator
-createValid, forExecutables, getBeanIntrospection, getBeanIntrospection, getBeanIntrospection, getBeanIntrospector, getConstraintsForClass, unwrap, validate, validate, validate, validate, validateBean, validateBeanArgument, validateCompletionStage, validateConstructorParameters, validateConstructorParameters, validateConstructorParameters, validateConstructorParameters, validateConstructorReturnValue, validatedAnnotatedElement, validateParameters, validateParameters, validateParameters, validateParameters, validateProperty, validateProperty, validatePublisher, validateReturnValue, validateReturnValue, validateReturnValue, validateValue, validateValue
createValid, forExecutables, getBeanIntrospection, getBeanIntrospection, getBeanIntrospection, getBeanIntrospector, getConstraintsForClass, requireNonEmpty, requireNonNull, unwrap, validate, validate, validate, validate, validateBean, validateBeanArgument, validateCompletionStage, validateConstructorParameters, validateConstructorParameters, validateConstructorParameters, validateConstructorParameters, validateConstructorReturnValue, validatedAnnotatedElement, validateParameters, validateParameters, validateParameters, validateParameters, validateProperty, validateProperty, validatePublisher, validateReturnValue, validateReturnValue, validateReturnValue, validateValue, validateValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Summary
Method Summary
Method Summary
jakarta.validation.metadata.BeanDescriptor
getConstraintsForClass(Class<?> clazz)
static String
requireNonEmpty(String name,
+ String value)
static <T> T
requireNonNull(String name,
+ T value)
<T> T
getBeanIntrospection
+requireNonNull
+ +IllegalArgumentException
if the value is null.-
+
- Type Parameters: +
T
- value Type
+- Parameters: +
name
- check name
+value
- value being checked
+- Returns: +
- the value +
requireNonEmpty
+ +IllegalArgumentException
if the value null or an empty string.-
+
- Parameters: +
name
- check name
+value
- value being checked
+- Returns: +
- the value +
Table of Contents
Micronaut Validation
Validation support for Micronaut
-Version: 5.0.0-SNAPSHOT
+Version: 4.6.0-SNAPSHOT
1 Introduction
1 Introduction<
2 Release History
-
+
Improve this doc
@@ -168,7 +164,7 @@ 2 Release H
3 Quick Start
-
+
Improve this doc
@@ -290,7 +286,7 @@ Supported Features
4 Validating Bean Methods
-
+
Improve this doc
@@ -457,7 +453,7 @@ 4 Val
5 Validating Data Classes
-
+
Improve this doc
@@ -911,7 +907,7 @@ <
6 Validating Configuration Properties
-
+
Improve this doc
@@ -936,7 +932,7 @@ 7 Defining Additional Constraints
-
+
Improve this doc
@@ -1057,6 +1053,7 @@ <
Example Constraint Validator Bean
-9 Breaking Changes
-
-
-
- Improve this doc
-
-
-
-
-
-This section documents breaking changes between Micronaut Validation versions:
-
-
-Micronaut Validation 5.0.0
-
-
--
-
The DefaultValidator methods requireNonNull(String, T)
and requireNonEmpty(String, String)
deprecated previously and are no longer exposed as part of the public API.
-
--
-
The ConstraintValidator method getMessageTemplate())
and requireNonEmpty(String, String)
deprecated previously is removed. It was unused and has no replacement.
-
-
-
-
-
-10 Repository
+9 Repository
-
+
Improve this doc
3 Quick Start
Supported Features
4 Validating Bean Methods
4 Val
5 Validating Data Classes
-
+
Improve this doc
@@ -911,7 +907,7 @@ <
6 Validating Configuration Properties
-
+
Improve this doc
@@ -936,7 +932,7 @@ 7 Defining Additional Constraints
-
+
Improve this doc
@@ -1057,6 +1053,7 @@ <
Example Constraint Validator Bean
-9 Breaking Changes
-
-
-
- Improve this doc
-
-
-
-
-
-This section documents breaking changes between Micronaut Validation versions:
-
-
-Micronaut Validation 5.0.0
-
-
--
-
The DefaultValidator methods requireNonNull(String, T)
and requireNonEmpty(String, String)
deprecated previously and are no longer exposed as part of the public API.
-
--
-
The ConstraintValidator method getMessageTemplate())
and requireNonEmpty(String, String)
deprecated previously is removed. It was unused and has no replacement.
-
-
-
-
-
-10 Repository
+9 Repository
-
+
Improve this doc
6 Validating Configuration Properties
7 Defining Additional Constraints
<
Example Constraint Validator Bean
-9 Breaking Changes
-
-
-
- Improve this doc
-
-
-
-
-
-This section documents breaking changes between Micronaut Validation versions:
-
-
-Micronaut Validation 5.0.0
-
-
--
-
The DefaultValidator methods requireNonNull(String, T)
and requireNonEmpty(String, String)
deprecated previously and are no longer exposed as part of the public API.
-
--
-
The ConstraintValidator method getMessageTemplate())
and requireNonEmpty(String, String)
deprecated previously is removed. It was unused and has no replacement.
-
-
-
-
-
-10 Repository
+9 Repository
-
+
Improve this doc
This section documents breaking changes between Micronaut Validation versions:
-Micronaut Validation 5.0.0
--
-
-
-
The DefaultValidator methods
-requireNonNull(String, T)
andrequireNonEmpty(String, String)
deprecated previously and are no longer exposed as part of the public API.
- -
-
The ConstraintValidator method
-getMessageTemplate())
andrequireNonEmpty(String, String)
deprecated previously is removed. It was unused and has no replacement.
-