Class NoopBeanValidationProvider
java.lang.Object
org.instancio.internal.beanvalidation.NoopBeanValidationProvider
- All Implemented Interfaces:
GeneratorSpecProcessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(@NotNull GeneratorSpec<?> spec, @NotNull Class<?> targetClass, @Nullable Field field) Processes given generator spec.
-
Constructor Details
-
NoopBeanValidationProvider
public NoopBeanValidationProvider()
-
-
Method Details
-
process
public void process(@NotNull @NotNull GeneratorSpec<?> spec, @NotNull @NotNull Class<?> targetClass, @Nullable @Nullable Field field) Description copied from interface:GeneratorSpecProcessor
Processes given generator spec.The
targetClass
parameter may differ fromField.getType()
. This could be the case where the field is declared using aTypeVariable
, in which case field's type will beObject
. Alternatively, a subtype may have been specified via the API.- Specified by:
process
in interfaceGeneratorSpecProcessor
- Parameters:
spec
- generator spec to processtargetClass
- class being generatedfield
- field the generated value will be assigned to
-