This week's giveaway is in the Spring forum.
We're giving away four copies of Microservices Testing (Live Project) and have Chris Love & Andres Sacco on-line!
See this thread for details.
Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Dependency Injection & Spring!

 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
DI is language-neutral.
DI can be used in any type of application.
 
author
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic