• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Spring IOC

 
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Spring IOC helps in decoupling dependencies between components.

What does it mean?

Does it refers to enabling loose coupling?
 
Ranch Hand
Posts: 88
Spring Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes it enables loose coupling, as injections are configured in a seperate xml files.
 
Ranch Hand
Posts: 137
Hibernate Netbeans IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Spring do provide IOC through Dependency Injection either with Setter Injection or Constructor Injection, with a aim to avoid TightCoupling and enforce LooseCoupling. In tight coupling, one object is heavily dependent on other object like as below.



Lets try attempt to reduce the impact of tight coupled Travel & Car object


Now Spring did it through XML bean configurations .... as below



spring.xml Configuration :


I can define any vehcile in the xml , ie a Train/Aeroplane/Cruise/Horse/Camel............
 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@Sidharth Pallai..................Good explanation for a beginner

A lot of these new frameworks came into existence because of design flaws in previous frameworks or whatever..............

So when we try to read or learn these new technologies, most of us don't understand the concepts............the constant question that arises for every concept is why we have to do this way.

For every new concept in these frameworks to understand, i think we should know the flaw in the old system/design/framework

Then we can easily or quickly grasp the new concepts/technologies..........

So the best way to learn any new technology is to first understand the fault in the old frameworks/designs
 
reply
    Bookmark Topic Watch Topic
  • New Topic