aspose file tools*
The moose likes OO, Patterns, UML and Refactoring and the fly likes Dependency Injection & Spring! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Dependency Injection & Spring!" Watch "Dependency Injection & Spring!" New topic
Author

Dependency Injection & Spring!

palla sridhar
Ranch Hand

Joined: Oct 15, 2007
Posts: 111
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?


Thanks and Regards,
[url]www.techlikes.com[/url]
*Nothing is CONSTANT in life, except CHANGE*
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

DI is language-neutral.
DI can be used in any type of application.
Dhanji Prasanna
author
Ranch Hand

Joined: Aug 30, 2009
Posts: 38
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.


Software Engineer at Google

http://twitter.com/dhanji
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dependency Injection & Spring!