I'm designing an application using the MVP pattern, but a few of the edge cases for the system rely on communication between multiple presenters.
Presenter 1which does
View 3, and
View 4are all interested in
Result X. They each have their respective presenters, and can each respectively do
Operation Aand get
Our application has a
MainView and a
MainPresenter which effectively just house the other views and presenters.
One of the solutions was to give the
MainPresenter references of
Presenter 3, and
Presenter 4. And having the result of
Operation A call the other presenters.
Another was to implement a
Facade layer that holds references to other presenters and it facilitates the other calls.
How have you handled this situation?