Class NoopBeanValidationProvider

java.lang.Object
org.instancio.internal.beanvalidation.NoopBeanValidationProvider
All Implemented Interfaces:
GeneratorSpecProcessor

public final class NoopBeanValidationProvider extends Object implements GeneratorSpecProcessor
  • 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 from Field.getType(). This could be the case where the field is declared using a TypeVariable, in which case field's type will be Object. Alternatively, a subtype may have been specified via the API.

      Specified by:
      process in interface GeneratorSpecProcessor
      Parameters:
      spec - generator spec to process
      targetClass - class being generated
      field - field the generated value will be assigned to