Hi,
I am writing MVC editor application. I put model related classes into single package. Most items have package visibility. I hoped to restrict access to modifying methods to my views. Only controllers can modify data. But I write Save operation and, you'll laugh, but controller needs to modify data and it's impossible for controller too. The first idea was I need something like class friends (C++), but there are no
Java. Also that would couple model with controller implementation permanently.
The question is: do you hide/restrict model modifications to Views? If you do so, how do you implement it? Is it worth doing at all?
Regards