module Athena::Validator::ConstraintValidatorFactoryInterface

Overview

Provides validator instances based on a validator class, caching the instance.

AVD::ServiceConstraintValidators are instantiated externally and injected into the factory.

Direct including types

Defined in:

constraint_validator_factory_interface.cr

Instance Method Summary

Instance Method Detail

abstract def validator(validator : AVD::ConstraintValidator.class) : AVD::ConstraintValidatorInterface #

Returns an AVD::ConstraintValidatorInterface instance based on the provided validator_class.


[View source]