lundi 4 janvier 2021

Design pattern on iterating over list of classes implementing interface

When I have a list of validation classes implementing an interface injected into a service for validating a request Object , what kind o pattern is this if I iterate over this list and call the method validate of each one? All the validation classes validate something

  • Is some kind of chain pattern?

Thanks

Aucun commentaire:

Enregistrer un commentaire