Dashboard > WebWork > ... > Reference > Inversion of Control
  WebWork Log In View a printable version of the current page.  
  Inversion of Control
Added by Patrick Lightbody, last edited by Philip Luppens on Jan 03, 2007  (view change)
Labels: 
(None)

What is Inversion of Control (IoC)?

Inversion of control is a way to handle dependencies of objects. For an overview of of Inversion of Control (also referred to now as Dependency Injection), please read Martin Fowler's article on IoC.

Spring as recommended IoC Container

Spring is, among other things, an Inversion of Control framework. As of WebWork 2.2, it is the recommended IoC container. A detailed description how Spring Integration works and how it is configured is found here.
Besides Spring, there are numerous other containers available for you to use, such as Pico or the (deprecated) integrated XWork IoC container.

WebWork/XWork integrated IoC Container

As of WebWork 2.2, the WebWork/XWork IoC container has been deprecated (though not removed) and the WebWork team recommends you use Spring for all your IoC needs

In WebWork IoC, objects that are have their dependencies managed are called "components".

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators