• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic