• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

IOC Example.

 
Ranch Hand
Posts: 238
1
Eclipse IDE Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I have learnt that IOC means inversion of control.Now i just want to cross check my understanding with help of you all.
IOC means that the framework is going to calll our code,instead of us calling our own code(methods).So if this is true,then can we say that MVC architecture implements IOC,in that we already have the servlets,but we do not know how the request is handled or who is handling the request.Also,is event based coding in GUI an example of IOC,as the frameworks calls our code whenever an event occurs?

Any suggestions and corrections are welcome.

Thanks....
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am with Marin Fowler in that I think IOC is to generic of a term. Have a look at this and see if it clears it up for you.

http://martinfowler.com/articles/injection.html#InversionOfControl
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic