0

I know DI is mostly used with MVP pattern however, where does Google Gin fits into a Model-View-Controller framework/pattern?

For example, usually for a MVC a View holds references to the Model (in which it listen to change events) and the Controller holds references to the Model and the View. I mean how I can improve a MVC pattern using DI.

quarks
  • 33,478
  • 73
  • 290
  • 513

1 Answers1

0

DI has nothing to do with MVC or MVP, it's IOC pattern which abstracts the dependencies for cleaners/easier unit testing and decoupling via DI container.

  • You have a point however, my question is how I can use DI to enhance the code of my MVC, in MVP pattern its something like this: bindPresenter(LoginPresenter.class, LoginPresenter.MyView.class, LoginView.class, LoginPresenter.MyProxy.class); – quarks May 02 '12 at 06:30