Thursday, November 13, 2008

Model-View-Presenter (MVP)

The MVP pattern resolves the depedency created between Model and View in MVC pattern. MVP uses a Presenter which provides a 2 way communication between the Model and View.
Execution Events:
1. Presenter passes calls from View(User Interaction) to Model, and
2. Presenter receives update events from Model, to update the View.

MVP pattern improves testability, as all the logic and processing occurs within the Presenter, but it does add some complexity to the implementation because updates must pass from the Presenter to the View.

No comments:

Post a Comment