Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dependency injection  RSS feed

 
Rejo Varghese
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to know about dependency injection. I know that it is a part of Spring framework. but i wanna know if it can be used only in a MVC framework or can it be used for java applicaitons.

Thanks for any suggestion.
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dependency Injection is now a prevalent part of developing all sorts of Java applications, both on the front end and the back end.
 
Rejo Varghese
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok....

So can you help me with some links to get to know about that in detail......
 
Babu Subburathinam
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rejo Varghese wrote:but i wanna know if it can be used only in a MVC framework or can it be used for java applicaitons.


Spring can be used in any application. The application does not have to be a web application.

Rejo Varghese wrote:
I want to know about dependency injection.


Learn from here.

 
Tekchand Prasad
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dependency injection is a style of object configuration in which an objects fields and collaborators are set by an external entity. In other words objects are configured by an external entity.

Dependency injection is an alternative to having the object configure itself.

Framwork using dependency Injection
Spring framwork
Jboss-seam(Using Bijection)
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rejo Varghese wrote:Hi,
I want to know about dependency injection. I know that it is a part of Spring framework. but i wanna know if it can be used only in a MVC framework or can it be used for java applicaitons.

Thanks for any suggestion.


Actually, my first exposure to dependency injection as a general design strategy wasn't in a GUI app at all. It was in the Apache Avalon Phoenix project, which we used to run batch processes. Avalon is long-gone now, but some of its components are still found in various other systems.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!