• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dependency Injection & Spring!

 
palla sridhar
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dhanji Prasanna,
Thanks for promoting your book in javaranch.
I have a few questions.
1. How does your book cover Dependency Injection related to Spring?
2. What are the other languages where DI is used?
3. What kind of applications can DI be used?
4. What are the future prospects of DI?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DI is language-neutral.
DI can be used in any type of application.
 
Dhanji Prasanna
author
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Yes it covers both Spring and Guice. DI as a design pattern is usable in most object oriented languages, though the only ones where it's in common use and with popular libraries are Java and C#. Ruby has a few but they never really took off there.

DI is useful in any non-trivial application in reducing boilerplate code and helping in a variety of ways, including making your code more testable and tolerant to change.

Guice is one framework that is evolving and innovating quite fast, I suggest you check out some of its features:
http://code.google.com/p/google-guice

There are also efforts to add DI as a standard library to the Java platform (JSR-330).

Dhanji.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic