Interface ValidatorCustomizer

All Known Subinterfaces:
Validator.GeneratedComponent
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ValidatorCustomizer
Callback interface that's used to customize a Validator.Builder.

These are service loaded when a Validator starts. The classes can be registered with

invalid reference
BuilderCustomizer
or via a provides clause in module-info when using the java module system.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Callback to customize a Validator.Builder instance.
  • Method Details

    • customize

      void customize(Validator.Builder builder)
      Callback to customize a Validator.Builder instance.