Monday, August 10, 2020

Inversion of Control - IoC

Inversion of Control is one of the critical design pattern of Spring Framework.

In this application development pattern -

    the control of portions of program is transferred to a container or framework.

    unlike in traditional programming where custom code makes call to libraries or framework.


The advantages-

decoupling of execution from implementation.

greater modularity


Inversion of control can be achieved through various mechanism such as:

Strategy design pattern

Service Locator Pattern

Factory Pattern

Dependency Injection

 

No comments:

Post a Comment

Spring - AutoWiring

Spring automatically resolves the dependencies between the collaborating beans by inspecting the contents of the BeanFactory. This is called...