Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Dependency injection

 
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.
 
author and cow tipper
Posts: 5000
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......
 
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.

 
Ranch Hand
Posts: 32
Hibernate Spring Java
  • 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)
 
Saloon Keeper
Posts: 21591
146
Android Eclipse IDE Tomcat Server Redhat Java 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.
 
If you send is by car it's a shipment, but if by ship it's cargo. This tiny ad told me:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!