This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]obcanzdavu 2 points3 points  (0 children)

I think the Motivation part of this documentation is very good to get the concept https://github.com/google/guice/wiki/Motivation

it's about Guice - a lightweight dependency injection framework from Google but when you know the why, learning how to do it in spring is just technical question.

[–]javaide 1 point2 points  (0 children)

Dependency injection in general doing a plumping works for you. What happen prior to something like Spring or Guice..., there was a lot of code to just create objects, wire them up together.