0% found this document useful (0 votes)
15 views

Bean Factory Application Context

The document discusses the Spring Inversion of Control (IOC) container and the differences between the BeanFactory and ApplicationContext components that form its base. BeanFactory implements lazy bean initialization while ApplicationContext eagerly instantiates all singleton beans.

Uploaded by

Kunwar_23
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Bean Factory Application Context

The document discusses the Spring Inversion of Control (IOC) container and the differences between the BeanFactory and ApplicationContext components that form its base. BeanFactory implements lazy bean initialization while ApplicationContext eagerly instantiates all singleton beans.

Uploaded by

Kunwar_23
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

org.springFramework.Beans and org.springframework.Context forms the base of the spring IOC container.

The beans define their dependencies with the each other they work with hence it is known as IOC
(Inversion of Control). A good se example of IOC is the servlet container where the container instantiates a
servlet.

BeanFactory and ApplicationContext forms the base of the spring IOC container. The basic difference
between BeanFactory and ApplicationContext is:

Bean Factory Application Context


Does not support internationalization I18 support Supports Internationalization
Follows lazy initialization of beans which means that Eager instantiation of bean. All the singleton bean is
it creates the bean when a bean is requested. created at the time the container is
started/initialized.
Does not provide support for sending events to Does provide support for sending events to the
registered bean. beans registered in the xml file
Annotation based dependency is not supported by Annotation based dependency is supported by
bean factory like @AUTOWIRED, @PREDESTROY Application context.

You might also like