473,320 Members | 2,110 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Inversion of control

Can anyone explain me the concept of inversion of control in spring pls
Mar 21 '08 #1
5 2076
JosAH
11,448 Expert 8TB
Can anyone explain me the concept of inversion of control in spring pls
The Spring manuals explain that in great detail so you're supposed to read it. The
general idea of IoC or DI (Dependency Injection) is a POJO (Plain Old Java Object)
that does what it has to do given just interfaces. The IoC mechanism supplies
implementations of those interfaces and 'injects' them into the POJO; all you
have to do is define what implementation needs to be injected in a declarative
manner (outside the actual code), usually using xml files.

kind regards,

Jos
Mar 21 '08 #2
vijay
30
i have put an aritcle which is
spring by vijaychoudary in the same site just u can refer to it if u have stil more doubts u can send queries to my personal id
Apr 9 '08 #3
vijay
30
hai gowri

u can be in contact with my personal id
[ email removed -- mod ]

if u r facing any problem in Spring framework
Apr 9 '08 #4
vijay
30
Can anyone explain me the concept of inversion of control in spring pls
In ejbs we have to look up the JNDI to acess the beans

But in the case of spring
we have various benas used .....

1 bean can look up (use) the other bean

so this look up of bean need be done by the programer by using
the registry...This is done by the sping container...

This is caled Inversion Of control
May 30 '08 #5
BigDaddyLH
1,216 Expert 1GB
Here is an excellent article titled:

Inversion of Control Containers and the Dependency Injection pattern

written by Martin Fowler. I believe he even coined the term "Dependency Injection". Enjoy:

http://martinfowler.com/articles/injection.html
May 30 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

18
by: Ken | last post by:
Hi. Can anyone refer me to any articles about the compatibility between c++ polymorphism and real-time programming? I'm currently on a real-time c++ project, and we're having a discussion...
12
by: Thomas Matthews | last post by:
Hi, According to Robert Martin's Dependency Inversion Principle, http://www.objectmentor.com/resources/articles/dip.pdf, when there is a need to test the type of an object, the code inside the...
2
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
2
by: Tanari | last post by:
I'm interested in learning about using Context Inversion of Control in c++, but all of the examples I can find use C# or Java. Can someone direct me to an example of Context IoC written in C++? ...
14
by: pamelafluente | last post by:
Hi guys, I have a hard problem :) I have the following situation: <span onmouseover = "SelectionEffect()"> <div style="width: 50px; height: 50px; background-color:#FFE4E1"></div> </span>
3
by: lancered | last post by:
Hi dear all, I am using Python2.4.2+NumPy1.0.1 to deal with a parameter estimation problem with the least square methods. During the calculations, I use NumPy package to deal with matrix...
2
by: sweetchuck74 | last post by:
Nowadays, DI (Dependency Inversion) is one of the widely used design pattern. It provides several benefits, such as (1) loose coupling between component (2) effective and easy testing (component...
3
by: PeteJ | last post by:
Hello all.. I wrote code in C to invert n x n matrices, where 1<n<39 and the matrices are guaranteed to be invertible. Prior to this task, I haven't really seen linear algebra since my sophmore...
3
by: Danno | last post by:
Just that simple question....out of curiosity.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.