Wednesday, September 15, 2021

Difference between Bean factory and Application context

Bean factory and Application context both are IOC container. But there some differences between them, 

Bean factory:   Bean factory provides basic management for bean and wiring of dependencies.

Application context:  Application context is beanfactory++. Not only provides basic management and wiring of dependencies but also provides Spring AOP features. WebApplication context for web applications ,provides internationalizations.

It is recommends to use Application context in most of the enterprise Application development .

No comments:

Post a Comment

Abstract factory pattern

When single task can be done by multiple groups/family of objects and decision is taken at the runtime.