Inversion of control in string framework

0 views
Skip to first unread message

Satish

unread,
Mar 12, 2010, 3:52:52 AM3/12/10
to javatechnicals
What is Inversion of Control (Ioc) in spring framework?

javatechnicals

unread,
Mar 15, 2010, 1:52:11 PM3/15/10
to javatechnicals
Hi Satish,

Basically IoC is an object oriented programming principle that can
reduce coupling in the programs.
Spring implemented IoC container. Everything is running on the IoC
container in spring framework.
IoC is also known as Dependency Injection.

we usually wrote the code, by invoking the framework and get the
things done. But here IoC container, framework code will invoke your
code and avoid the tight coupling.
IoC container gives you the implementation object, don't need to have
direct reference "Don't Call me I will Call u".
Easy to maintain and reusable.
Testing is easier.

I recomend you to read Professional java development with spring
framework. this book is written by the spring team.

"Spring Recipes" written by Gary Mak is also nice book. i like this
book more,because its written in a simple way with examples.

You must have a good understanding of IoC and AOP (Aspect Oriented
Programming) before getting deep into Spring framework.

Regards
Sreehari

Reply all
Reply to author
Forward
0 new messages