Interface ValidationContext.AdapterFactory

Enclosing interface:
ValidationContext
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 static interface ValidationContext.AdapterFactory
Factory for creating a ValidationAdapter for a given type.
  • Method Summary

    Modifier and Type
    Method
    Description
    Create and return a ValidationAdapter given the type and annotations or return null.
  • Method Details

    • create

      ValidationAdapter<?> create(Type type, ValidationContext ctx)
      Create and return a ValidationAdapter given the type and annotations or return null. Returning null means that the adapter could be created by another factory.
      Parameters:
      type - The type for which the adapter is being created
      ctx - The validation context
      Returns:
      The created validation adapter or null if not applicable