Header Ads

ad

BeanFactory vs ApplicationContext container

Differenc between BeanFactory and ApplicationContext container

ApplicationContext container can do all those things what BeanFactory container can do as well as ApplicationContext container can do some extra things as follows :

a) Pre-instantiation of singleton scope spring beans.

b) ApplicationContext container has got the ability to start, stop and close the container.

c) It supports Internationalization(I18N).

d) It supports Event handling and Event publication.

e) It supports Properties file directly.

e) It has got the ability to take java class as configuration class.

f) Automatic Registration of BeanPostProcessor

g) Automatic Registration of BeanFactoryPostProcessor.

h) It has ability to work with Annotation driven configuration.

No comments