dimanche 13 décembre 2020

Observer Pattern and Dependency Inversion

I have a controller class that implements Observer and another use-case class (called UseCase) (which is on a lower clean architecture layer) that extends Observable.

If my controller stores an instance of UseCase and calls useCase.addObserver(this), is this breaking clean architecture, or is this an example of dependency inversion?

Aucun commentaire:

Enregistrer un commentaire