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