mercredi 2 septembre 2015

Chain of Responsibility

Why I need to use CoR if I could write if-else and instead of passing through multiple handlers I could just find whatever handler I need and delegate the processing to the specific one.

I think, CoR is not being used as a pipeline to process the same request in multiple handlers. So why I use CoT at all?

Aucun commentaire:

Enregistrer un commentaire