aspose file tools*
The moose likes JSF and the fly likes Dependency injection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Dependency injection" Watch "Dependency injection" New topic
Author

Dependency injection

Rejo Varghese
Greenhorn

Joined: Aug 07, 2009
Posts: 4
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.


Rejo,
crazy developer.
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

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

Joined: Aug 07, 2009
Posts: 4
ok....

So can you help me with some links to get to know about that in detail......
Babu Subburathinam
Greenhorn

Joined: Sep 03, 2009
Posts: 7
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

Joined: Oct 20, 2005
Posts: 32
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
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15632
    
  15

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
 
subject: Dependency injection
 
Similar Threads
Dependency Injection Usage
Is backing Bean Replacing Command Pattern?
Spring IoC and DI
Dependency Injection in struts 2.0
Real Usage of java Reflection