7 Extended Validators
The default DTO validator classes can be extended using customized DTO validators. The customized validator must implement IDTOValidator class. The validation logic should be provided in overridden validate method.
The default DTO validation logic can be used by extending the default
validator of the DTO class and calling super.validate() followed by customized
validation logic. The customized class name should be given in
‘DIGX_FW_CONFIG_ALL_B’
under category
‘ExtValidationConfig’
.
The extended validation class should contain a protected constructor and
should use singleton pattern with a‘getInstance’
method to return the
validator object. Refer the templates section for sample extended validator.