MVP: Should the View implement a Presenter's interface or vice versa?

前端 未结 3 858
离开以前
离开以前 2020-12-14 03:25

I am doing my first steps with GWT. I have a question after reading:

  • Large scale application development and MVP
  • Large scale application
3条回答
  •  渐次进展
    2020-12-14 04:21

    I think you should have used the word 'defines' in your question instead of 'implements' and if thats the case then it does not matter which class defines the interface.

    You could do something different by defining the interfaces in its own files. At the end of the day all that matters is the Presenter implementing the Presenter interface and the View implementing the View interface.

提交回复
热议问题