Hi ranchers,
I implement mvc in my assigment, i have a services layer than is my model a controller class than manages interaction between gui and model and gui classes than have a reference to the controller. I have a trouble because i declared my controller in middleware package and gui classes in gui package, but both packages depends on each other (i pass my classes through a metrics program and this inform about the double dependency between gui and middelware packages).
In some other threads i read than gui classes no need to have a reference to the controller making a lose coupling between gui and controller (but i don't know how do this) and searching an example of mvc i found the strategy
pattern implemented in the controller declared for the gui but model, view and controller classes are declared in the same package. It is a good design?, how i can change my implementation to resolve package dependency?
Thanks to all.