mardi 23 janvier 2018

Combining Composite and Mediator Pattern

I've seen few attempts of implementing such a combination. But my question is if combining these two Patterns is somehow recommended. As it seems to me that the Mediator, by controlling the behaviour of Conposite components, may disrupt the responsibilities logic of the Composite tree itself. May someone tell me if it is wrong and in case what is the good rationale of combining them?

Aucun commentaire:

Enregistrer un commentaire