Roel De Nijs wrote:Here you'll find more info about the approach I used.
Your solution is surprisingly simple. I have a RoomServices with 5 methods: find, findByExample, add, remove, book. You have only two, find and book!!!
In MVC, I will choose a different aproach: view doesn't know controller, while controller knows view.
Example likes this. To me it is more intuitive: controller forces listener(spy
) into view, when view takes any actions, listener will feedback to controller and controller will take some actions according to it interest.